duck

duck

Jan 15th, 2011
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Cheats
  5. {
  6.     public static bool god;
  7.     public static bool noai;
  8.     public static bool unlimammo;
  9.     public static bool alllevels;
  10.     public static bool cheat;
  11.  
  12.     public static void DestroyAllEnemies()
  13.     {
  14.         Enemy[] enemies = Object.FindObjectOfType(typeof(Enemy));
  15.         foreach (Enemy enemy in enemies) {
  16.             Destroy(enemy.GameObject);
  17.         }
  18.     }
  19.    
  20. }
Advertisement
Add Comment
Please, Sign In to add comment