public Cell SetSpawner() { myCellType = Data.CellType.SPAWN; myBaseColor = mySpawnColor; myRenderer.material.SetColor("_Color", mySpawnColor); return(this); }
public Cell SetGoal() { myCellType = Data.CellType.GOAL; myBaseColor = myGoalColor; myRenderer.material.SetColor("_Color", myGoalColor); return(this); }
public void Init(int anIndex, int aX, int aZ, Data.CellType aCellType) { myIndex = anIndex; myX = aX; myZ = aZ; myIsOccupied = false; myCellType = aCellType; myTransform = transform; myTransform.position = new Vector3(aX, 0, aZ); myRenderer = GetComponent <Renderer>(); }
public void SetDroneSpawner() { myCellType = Data.CellType.DRONESPAWN; myBaseColor = myDroneSpawnColor; myRenderer.material.SetColor("_Color", myDroneSpawnColor); }
public void SetCellType(Data.CellType aCellType) { myCellType = aCellType; }