void OnCollisionEnter(Collision col) { if (col.gameObject.name == "Projectile") { SnappyController1 otherScript = GetComponent <SnappyController1> (); otherScript.enabled = true; } }
void Awake() { SnappyController1 otherScript = GetComponent <SnappyController1>(); otherScript.enabled = false; }