ユーザ用ツール

サイト用ツール


unity2d:co-routine

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
unity2d:co-routine [2024/01/12 02:13] – [Coinの発射] yajuadminunity2d:co-routine [2024/01/12 02:13] (現在) – [C#スクリプト作成] yajuadmin
行 72: 行 72:
         if (other.tag == "DamageObject") {         if (other.tag == "DamageObject") {
                if(++count >= 6)                if(++count >= 6)
-                 Destroy(other.gameObject); //コインが6発当たれば敵を削除+                 Destroy(other.gameObject); // コインが6発当たれば敵を削除
                Destroy(this.gameObject);                Destroy(this.gameObject);
           }           }
行 78: 行 78:
  
     void OnBecameInvisible() {     void OnBecameInvisible() {
-        Destroy(this.gameObject); //カメラから外れたら削除+        Destroy(this.gameObject); // カメラから外れたら削除
     }     }
 } }
unity2d/co-routine.1704993185.txt.gz · 最終更新: 2024/01/12 02:13 by yajuadmin