public void OnTriggerIn(TriggerEvent evt) { if (evt.otherTriggerController.ITriggerDelegate.GetGameObject().tag == "Role" || evt.otherTriggerController.ITriggerDelegate.GetGameObject().tag == "Player") { RoleController humanController = evt.otherTriggerController.ITriggerDelegate.GetGameObject().GetComponent <RoleController>(); if (humanController != null) { humanController.AddClimbLadder(onlyid.ToString(), this); } } }