Esempio n. 1
0
 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>();
 }
Esempio n. 2
0
 public VRBossAttackState(VRBossFSM stateMachine, VRBoss boss) : base(stateMachine, boss)
 {
 }
Esempio n. 3
0
 public VRBossState(VRBossFSM stateMachine, VRBoss boss) : base(stateMachine)
 {
     this.Boss    = boss;
     this.bossFSM = stateMachine;
 }
Esempio n. 4
0
 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)
 {
 }