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."); } }
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); }
public ActorPartner(RoleEntityBase entity, ActorType type, BattleCampType camp, CharacterController cc, Animator anim) : base(entity, type, camp, cc, anim) { }
public ActorEnemy(RoleEntityBase entity, ActorType type, BattleCampType camp, CharacterController cc, Animator anim) : base(entity, type, camp, cc, anim) { MonsterType = (MonsterType)m_ActorData.MonsterType; }