Exemple #1
0
 public Cell SetSpawner()
 {
     myCellType  = Data.CellType.SPAWN;
     myBaseColor = mySpawnColor;
     myRenderer.material.SetColor("_Color", mySpawnColor);
     return(this);
 }
Exemple #2
0
 public Cell SetGoal()
 {
     myCellType  = Data.CellType.GOAL;
     myBaseColor = myGoalColor;
     myRenderer.material.SetColor("_Color", myGoalColor);
     return(this);
 }
Exemple #3
0
    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>();
    }
Exemple #4
0
 public void SetDroneSpawner()
 {
     myCellType  = Data.CellType.DRONESPAWN;
     myBaseColor = myDroneSpawnColor;
     myRenderer.material.SetColor("_Color", myDroneSpawnColor);
 }
Exemple #5
0
 public void SetCellType(Data.CellType aCellType)
 {
     myCellType = aCellType;
 }