private void OnTriggerEnter(Collider other) { LevitationEffect levitating = other.GetComponent <LevitationEffect>(); if (!levitating) { effectPrefab.AddEffectTo(other.gameObject); } }
void ManageEffectsCollisions() { LevitationEffect levEffect = GetComponent <LevitationEffect>(); if (levEffect) { Destroy(levEffect); } }