// Use this for initialization
 void Start()
 {
     score = ScoreControler.Get();
     if (affinity == 1)
     {
         gameObject.GetComponent <Renderer>().material.color = Color.white;
     }
     if (affinity == 2)
     {
         gameObject.GetComponent <Renderer>().material.color = Color.black;
     }
     spawnDrone      = true;
     spawnDroneTimer = 4.0;
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     score = ScoreControler.Get();
     if (affinity == 1)
     {
         gameObject.GetComponent <Renderer>().material.color = Color.white;
     }
     if (affinity == 2)
     {
         gameObject.GetComponent <Renderer>().material.color = Color.black;
     }
     if (affinity == 3)
     {
         gameObject.GetComponent <Renderer>().material.color = Color.grey;
     }
 }
Exemple #3
0
 void Start()
 {
     score = ScoreControler.Get();
 }