コード例 #1
0
 void Start()
 {
     this.enemyComponent = this.GetComponent <EnemyComponent>();
     this.chaseComponent = this.GetComponent <ChaseComponent>();
 }
コード例 #2
0
 public override void Awake(StateMachine stateMachine)
 {
     _chaseComponent = stateMachine.GetComponent <ChaseComponent>();
 }