void OnTriggerEnter(Collider c) { if (!triggered && c.gameObject.name == "Player") { triggered = true; light.activate(); } }
void OnTriggerEnter(Collider c) { if (!triggeredBall && c.gameObject.name == "Player") { triggeredBall = true; deathBall.rigidbody.useGravity = true; lightActivator.activate(); } }