void OnCollisionEnter(Collision other) { if (other.gameObject.tag == "Player") { camChange = FindObjectOfType <cameraChanges> (); camChange.hitStop(); //statistics.g_globalPoints += 1000; //timer.gameTimer += 2; //Destroy(gameObject); } }
void Start() { Physics.gravity = new Vector3(0, -150, 0); camChange = FindObjectOfType <cameraChanges> (); }