コード例 #1
0
ファイル: CatchPistol.cs プロジェクト: MrPixeIz/Metal-Kombat
 void OnTriggerEnter(Collider other)
 {
     if (other.name == "Player")
     {
         soundCatchGun.Play();
         mainPlayer = other.gameObject.GetComponent <MainPlayer>();
         Destroy(gameObject, timeBeforeDestroy);
         mainPlayer.AddModeAttaque();
     }
 }