/// public メソッド ///--------------------------------------------------------------------------- /// 初期化 public bool Init() { actorChList = new List <ActorChHobit>(); if (actorChList == null) { return(false); } activeList = new List <ActorChHobit>(); if (activeList == null) { return(false); } FarmerList = new List <ActorChHobit>(); WarriorList = new List <ActorChHobit>(); PriestList = new List <ActorChHobit>(); ZonbiList = new List <ActorChHobit>(); FarmerPos = new Vector3(0.0f, 0.0f, 0.0f); WarriorPos = new Vector3(0.0f, 0.0f, 0.0f); PriestPos = new Vector3(0.0f, 0.0f, 0.0f); EnemyPos = new Vector3(0.0f, 0.0f, 0.0f); stateId = CtrlStateId.Move; preStateId = CtrlStateId.Move; changeStateFlag = false; EnemyDispearFlag = false; speakCount = 0; return(true); }
public void SetCtrlStateId(CtrlStateId id) { changeStateFlag = true; preStateId = stateId; stateId = id; }
/// public メソッド ///--------------------------------------------------------------------------- /// 初期化 public bool Init() { actorChList = new List< ActorChHobit >(); if( actorChList == null ){ return false; } activeList = new List< ActorChHobit >(); if( activeList == null ){ return false; } FarmerList = new List<ActorChHobit>(); WarriorList = new List<ActorChHobit>(); PriestList = new List<ActorChHobit>(); ZonbiList = new List<ActorChHobit>(); FarmerPos = new Vector3(0.0f,0.0f,0.0f); WarriorPos = new Vector3(0.0f,0.0f,0.0f); PriestPos = new Vector3(0.0f,0.0f,0.0f); EnemyPos = new Vector3(0.0f,0.0f,0.0f); stateId = CtrlStateId.Move; preStateId = CtrlStateId.Move; changeStateFlag = false; EnemyDispearFlag = false; speakCount = 0; return true; }
public void SetCtrlStateId(CtrlStateId id) { changeFlag = true; if(id == CtrlStateId.BattleMove){ AttackMoveCount = 20; } preStateId = stateId; stateId = id; }
/// public メソッド ///--------------------------------------------------------------------------- /// 初期化 public bool Init() { actorChList = new List< ActorChMonster >(); if( actorChList == null ){ return false; } activeList = new List< ActorChMonster >(); if( activeList == null ){ return false; } FarmerCenterPos = new Vector3(0.0f,0.0f,0.0f); WarriorCenterPos = new Vector3(0.0f,0.0f,0.0f); PriestCenterPos = new Vector3(0.0f,0.0f,0.0f); EnemyCenterPos = new Vector3(0.0f,0.0f,0.0f); FarmerCount = 0; WarriorCount = 0; PriestCount = 0; EnemyCount = 0; towerNumber = 0; AttackMoveCount = 0; battleCount = 0; stateId = CtrlStateId.Move; preStateId = CtrlStateId.Move; changeFlag = false; speakCount = 0; return true; }