コード例 #1
0
 private void Awake()
 {
     boxCol = GetComponent <BoxCollider2D>();
     rigid  = GetComponent <Rigidbody2D>();
     anim   = GetComponent <GoblinAnimation>();
     ai     = GetComponent <EnemyAI>();
 }
コード例 #2
0
ファイル: BossHealth.cs プロジェクト: rtq9731/Unity_Basic
 private void Awake()
 {
     _goblinAnim = GetComponent <GoblinAnimation>();
 }
コード例 #3
0
ファイル: GoblinAttack.cs プロジェクト: rtq9731/Unity_Basic
 protected override void Awake()
 {
     knife = GetComponentInChildren <KnifeScript>();
     anim  = GetComponent <GoblinAnimation>();
 }