void OnTriggerEnter(Collider col) { if(col.gameObject.tag == "Player") { crowdControllable = col.GetComponent<CrowdControllable>(); crowdControllable.addStun(2); Destroy(gameObject); } }
void OnTriggerEnter(Collider col) { if(col.gameObject.tag == "Player") { crowdControllable = col.GetComponent<CrowdControllable>(); crowdControllable.addStun(2); Destroy(gameObject); } }