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; }
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; }
public AIState_Attack(AIMachine_Base ma) : base(ma) { }
public AIState_Idle(AIMachine_Base ma) : base(ma) { }