Esempio n. 1
0
 public ActorPlayer(RoleEntityBase entity, ActorType type, BattleCampType camp, CharacterController cc, Animator anim) : base(entity, type, camp, cc, anim)
 {
     m_PlayerData = GameEntry.Database.GetDBRow <DBPlayer>(Id);
     if (m_PlayerData == null)
     {
         throw new Exception("Get DBPlayer Failure.");
     }
 }
Esempio n. 2
0
        public ActorBase(RoleEntityBase entity, ActorType type, BattleCampType camp,
                         CharacterController cc, Animator anim)
        {
            if (entity == null || cc == null || anim == null)
            {
                throw new GameFrameworkException("Construct Actor Fail.");
            }

            Entity          = entity;
            Id              = entity.TypeId;
            EntityId        = entity.Id;
            EntityGo        = entity.gameObject;
            CachedTransform = EntityGo.transform;

            m_CharacterController         = cc;
            m_CharacterController.enabled = true;
            m_Animator = anim;
            ActorType  = type;
            Camp       = camp;

            m_ActorData = GameEntry.DataTable.GetDataTable <DRActorEntity>().GetDataRow(Id);
        }
Esempio n. 3
0
 public ActorPartner(RoleEntityBase entity, ActorType type, BattleCampType camp, CharacterController cc, Animator anim) : base(entity, type, camp, cc, anim)
 {
 }
Esempio n. 4
0
 public ActorEnemy(RoleEntityBase entity, ActorType type, BattleCampType camp, CharacterController cc, Animator anim) : base(entity, type, camp, cc, anim)
 {
     MonsterType = (MonsterType)m_ActorData.MonsterType;
 }