private void Awake() { stateMachine = new VRBossFSM(this); IdleState = new VRBossIdleState(this, stateMachine); FollowState = new VRBossFollowState(stateMachine, this); AttackState = new VRBossAttackState(stateMachine, this); FireballState = new VRBossFireballState(stateMachine, this); stateMachine.Initialize(IdleState); mover = GetComponent <BossMover>(); followTarget = false; animator = GetComponent <Animator>(); attacker = GetComponent <BossAttacker>(); fireballSpawner = GetComponent <VrBossFireballSpawner>(); }
public VRBossAttackState(VRBossFSM stateMachine, VRBoss boss) : base(stateMachine, boss) { }
public VRBossState(VRBossFSM stateMachine, VRBoss boss) : base(stateMachine) { this.Boss = boss; this.bossFSM = stateMachine; }
public VRBossFollowState(VRBossFSM stateMachine, VRBoss boss) : base(stateMachine, boss) { }
public VRBossFireballState(VRBossFSM stateMachine, VRBoss boss) : base(stateMachine, boss) { }
public VRBossIdleState(VRBoss boss, VRBossFSM stateMachine) : base(stateMachine, boss) { }