// 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;
 }
예제 #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;
     }
 }
예제 #3
0
 // Use this for initialization
 void Start()
 {
     _controler = this;
     Score      = 0;
 }
예제 #4
0
 void Start()
 {
     score = ScoreControler.Get();
 }
예제 #5
0
 void Start()
 {
     score = FindObjectOfType <ScoreControler>();
 }