added factory pattern and object pooling for enemies
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
<!-- UNITY CODE ASSIST INSTRUCTIONS START -->
|
||||
- Project name: MobileShooter
|
||||
- Unity version: Unity 6000.3.0f1
|
||||
- Active game object:
|
||||
- Name: Zombie_LeftHandMiddle3
|
||||
- Tag: Untagged
|
||||
- Layer: Default
|
||||
<!-- UNITY CODE ASSIST INSTRUCTIONS END -->
|
||||
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 69cba197053ac6f44b64df072824462a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using VContainer;
|
||||
using VContainer.Unity;
|
||||
|
||||
namespace Darkmatter.Domain
|
||||
{
|
||||
@@ -40,7 +41,7 @@ namespace Darkmatter.Domain
|
||||
default:
|
||||
break;
|
||||
}
|
||||
objectResolver.Inject(enemyObj);
|
||||
objectResolver.InjectGameObject(enemyObj);
|
||||
|
||||
IEnemyPawn enemyPawn = enemyObj.GetComponent<IEnemyPawn>();
|
||||
IEnemyAnimController animController = enemyObj.GetComponent<IEnemyAnimController>();
|
||||
|
||||
@@ -340,7 +340,7 @@ Transform:
|
||||
m_GameObject: {fileID: 330585543}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -25.7, y: 2.211, z: 16.14}
|
||||
m_LocalPosition: {x: -25.7, y: 2.211, z: 15.139999}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
|
||||
Reference in New Issue
Block a user