Beispiel #1
0
 public void changeOwner(Unit newOwner = null, SuppliesStorage newStorage = null)
 {
     if (newOwner != null)
     {
     }
     else if (newStorage != null)
     {
     }
 }
Beispiel #2
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Debug.LogError("Too many Instances!");
         Destroy(gameObject);
     }
 }
Beispiel #3
0
 public Player(string name, int xDim, int yDim, OutputFrame oob)
 {
     OrderOfBattle = oob;
     YDimension    = yDim;
     XDimension    = xDim;
     Name          = name;
     Units         = new Dictionary <string, Unit>();
     MissingMenMap = new int[YDimension, XDimension];
     OffMapStorage = new SuppliesStorage(1000000);
     for (int y = 0; y < YDimension; y++)
     {
         for (int x = 0; x < XDimension; x++)
         {
             MissingMenMap[y, x] = 0;
         }
     }
 }