private void OnTriggerExit(Collider other) { if (!other.isTrigger) { SnowBallGrowth component = other.gameObject.GetComponent <SnowBallGrowth>(); if (component != null) { snowballsInside.Remove(component); } } }
public bool SnowballInsideCave(SnowBallGrowth snowball) { return(snowballsInside.Contains(snowball)); }