// Use this for initialization void Start() { karthusScript = FindObjectOfType <KarthusManager> (); lifeTimeStore = lifeTime; if (lifeTime != 10) { lifeTime = 10; } }
void OnTriggerEnter2D(Collider2D other) { if (other.GetComponent <PlayerController> () == null) { return; } if (KarthusManager.score == 3) { return; } KarthusManager.AddPoints(pointsToAdd); pointsToAdd = 0; coinSoundEffect.Play(); Destroy(gameObject); }
// Use this for initialization void Start() { startUp = FindObjectOfType <KarthusUltiStartUp> (); manager = FindObjectOfType <KarthusManager> (); }