Ejemplo n.º 1
0
 public override void Click(PlayerController pC)
 {
     BotBehaviour.SetDifficulty(difficulty);
     GameObject[] g = GameObject.FindGameObjectsWithTag("Sign");
     for (int i = 0; i < g.Length; i++)
     {
         if (g[i].GetComponent <DifficultySign>() != null)
         {
             g[i].transform.GetChild(0).gameObject.GetComponent <TextMesh>().color = new Color(0.0f, 0.0f, 0.0f);
         }
     }
     transform.GetChild(0).gameObject.GetComponent <TextMesh>().color = new Color(1.0f, 0.0f, 0.0f);
 }