Пример #1
0
 public AIState_Base(AIMachine_Base ma)
 {
     this.machine     = ma;
     this.alertRange  = 300;//ma.data.alert;
     this.myTrans     = ma.Script.transform;
     this.targetTrans = PlayerManager.Instance.fieldPlayer.transform;
 }
Пример #2
0
 public void Init(int id)
 {
     this.alwaysShowHp = true;
     this.monsterData  = MasterDataManager.Monster.GetData(id);
     InitProperty();
     UpdateHpBar();
     ShowHp();
     this.transform.localScale = Vector3.one * monsterData.size;
     this.SetName(monsterData.name);
     this.AI = new AIMachine_Base();
     this.AI.Init(id, this);
     this.AI.active = true;
 }
Пример #3
0
 public AIState_Attack(AIMachine_Base ma) : base(ma)
 {
 }
Пример #4
0
 public AIState_Idle(AIMachine_Base ma) : base(ma)
 {
 }