Пример #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>();
 }
Пример #2
0
 public VRBossAttackState(VRBossFSM stateMachine, VRBoss boss) : base(stateMachine, boss)
 {
 }
Пример #3
0
 public VRBossState(VRBossFSM stateMachine, VRBoss boss) : base(stateMachine)
 {
     this.Boss    = boss;
     this.bossFSM = stateMachine;
 }
Пример #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)
 {
 }