示例#1
0
        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;
        }
示例#2
0
 public ActorPlayer(int entityId, int id, GameObject go, ActorType type, ActorBattleCampType camp, CharacterController cc, Animator anim) : base(entityId, id, go, type, camp, cc, anim)
 {
 }
示例#3
0
 protected void FindActorsByCamp(ActorBattleCampType actorCamp, ref List <ActorBase> list, bool ignoreStealth = false)
 {
     //TODO 从关卡获取敌人
 }