Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 public AIState_Attack(AIMachine_Base ma) : base(ma)
 {
 }
Ejemplo n.º 4
0
 public AIState_Idle(AIMachine_Base ma) : base(ma)
 {
 }