public void changeOwner(Unit newOwner = null, SuppliesStorage newStorage = null) { if (newOwner != null) { } else if (newStorage != null) { } }
private void Awake() { if (Instance == null) { Instance = this; } else { Debug.LogError("Too many Instances!"); Destroy(gameObject); } }
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; } } }