コード例 #1
0
ファイル: Cell.cs プロジェクト: antoinusitos/Pack
 public Cell SetSpawner()
 {
     myCellType  = Data.CellType.SPAWN;
     myBaseColor = mySpawnColor;
     myRenderer.material.SetColor("_Color", mySpawnColor);
     return(this);
 }
コード例 #2
0
ファイル: Cell.cs プロジェクト: antoinusitos/Pack
 public Cell SetGoal()
 {
     myCellType  = Data.CellType.GOAL;
     myBaseColor = myGoalColor;
     myRenderer.material.SetColor("_Color", myGoalColor);
     return(this);
 }
コード例 #3
0
ファイル: Cell.cs プロジェクト: antoinusitos/Pack
    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>();
    }
コード例 #4
0
ファイル: Cell.cs プロジェクト: antoinusitos/Pack
 public void SetDroneSpawner()
 {
     myCellType  = Data.CellType.DRONESPAWN;
     myBaseColor = myDroneSpawnColor;
     myRenderer.material.SetColor("_Color", myDroneSpawnColor);
 }
コード例 #5
0
ファイル: Cell.cs プロジェクト: antoinusitos/Pack
 public void SetCellType(Data.CellType aCellType)
 {
     myCellType = aCellType;
 }