Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     GameUtilities.FindGame(ref OwningGame);
     TankAggro  = new SortedDictionary <byte, float>();
     Health     = 100f;
     FrameFired = Time.frameCount;
     Players    = null;
     GameUtilities.GetAllPlayers(ref Players);
     if (Players != null)
     {
         print("Guardian : found " + Players.Length.ToString() + " players");
     }
     BulletSpawnLoc = gameObject.transform.Find("BulletSpawn").gameObject;
     if (BulletSpawnLoc != null)
     {
         print("Guardian Found Bullet Spawn");
     }
     else
     {
         print("Guardian DID NOT Find Bullet Spawn");
     }
 }