public override void EffectOnTrigger(GameObject objectHit) { base.EffectOnTrigger(objectHit); StatusEffects effects = objectHit.transform.root.GetComponent <StatusEffects>(); effects.ApplyRoot(rootLength); effects.ActivateContainmentZone(rootLength); }