コード例 #1
0
 // OnStateEnter is called when a transition starts and the state machine starts to evaluate this state
 override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     if (boss == null)
     {
         boss = animator.GetComponent <VRBoss>();
     }
     attackCalled        = false;
     nextEventAttackTime = Time.time + eventAttackTime;
 }
コード例 #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)
 {
 }
コード例 #5
0
 public VRBossFireballState(VRBossFSM stateMachine, VRBoss boss) : base(stateMachine, boss)
 {
 }
コード例 #6
0
 private void Awake()
 {
     boss     = GetComponent <VRBoss>();
     animator = GetComponent <Animator>();
 }
コード例 #7
0
 private void Awake()
 {
     boss = FindObjectOfType <VRBoss>();
 }
コード例 #8
0
 public VRBossFSM(VRBoss boss) : base()
 {
     this.boss = boss;
 }
コード例 #9
0
 void Start()
 {
     capsuleCollider = attackPoint.GetComponent <CapsuleCollider2D>();
     boss            = GetComponent <VRBoss>();
 }
コード例 #10
0
 public VRBossIdleState(VRBoss boss, VRBossFSM stateMachine) : base(stateMachine, boss)
 {
 }