// 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; }
// 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; } }
void Start() { score = ScoreControler.Get(); }