Пример #1
0
 // Start is called before the first frame update
 private void Start()
 {
     anim                  = GetComponent <Animator>();
     rigid                 = GetComponent <Rigidbody2D>();
     enemy_boss_move       = this.gameObject.GetComponent <GunBossMoveScript>();
     enemy_boss_controller = this.gameObject.GetComponent <GunBossControllerScript>();
 }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     anim            = GetComponent <Animator>();
     Player          = GameObject.FindWithTag("Player");
     StrikeToggle    = StrikeAttackObject.GetComponent <Toggle>();
     KickToggle      = KickAttackObject.GetComponent <Toggle>();
     gun_boss_move   = this.gameObject.GetComponent <GunBossMoveScript>();
     gun_boss_status = GetComponent <GunBossStatusScript>();
 }