private void OnTriggerEnter(Collider other) { //If hit a target, explode right away. TargetObject target = other.gameObject.GetComponent <TargetObject>(); if (target != null) { target.Destroy(); gameManager.ChangeWind(); } }