コード例 #1
0
 // Start is called before the first frame update
 void Start()
 {
     // Get components
     Doom_Shroom_HitBox    = GetComponentInChildren <Mob_Basic_Attack>();
     Doom_Shroom_Collision = GetComponent <BoxCollider2D>();
     Doom_Shroom_RB        = GetComponent <Rigidbody2D>();
     Doom_Shroom_Att       = GetComponent <Doom_Shroom_Attack>();
     Doom_Shroom_Mo        = GetComponent <Doom_Shroom_Movement>();
     Boss_Load_Next_Le     = GetComponent <Boss_Load_Next_Level>();
     Update_State(Boss_States.Cinematic);
 }
コード例 #2
0
 private void Start()
 {
     Doom_Shroom_Mo = GetComponentInParent <Doom_Shroom_Movement>();
     Doom_Shroom_At = GetComponentInParent <Doom_Shroom_Attack>();
 }