protected ActorBase(int entityId, int id, GameObject go, ActorType type, ActorBattleCampType camp, CharacterController cc, Animator anim) { if (id == 0 || go == null || cc == null || anim == null) { throw new GameFrameworkException("Construct Actor Fail."); } m_ActorSkill = new ActorSkill(this); Id = id; EntityId = entityId; ActorType = type; Camp = camp; EntityGo = go; CacheTransform = go.transform; BornParam = go.transform; m_CharacterController = cc; m_Animator = anim; }
public ActorPlayer(int entityId, int id, GameObject go, ActorType type, ActorBattleCampType camp, CharacterController cc, Animator anim) : base(entityId, id, go, type, camp, cc, anim) { }
protected void FindActorsByCamp(ActorBattleCampType actorCamp, ref List <ActorBase> list, bool ignoreStealth = false) { //TODO 从关卡获取敌人 }