Пример #1
0
    public void SetStance(PlantStance stance)
    {
        switch (stance)
        {
        case PlantStance.enemy:
            renderer.sharedMaterial = enemyMat;
            break;

        case PlantStance.friendly:
            renderer.sharedMaterial = friendlyMat;
            break;
        }
    }
Пример #2
0
 public void ClearInfection()
 {
     stance = PlantStance.enemy;
 }
Пример #3
0
 public void InfectPlant()
 {
     stance = PlantStance.friendly;
 }