public static BaseCharacterController CharacterModule(GameObject GetFrom) { GameObject obj = null; CharacterControl.BaseCharacterController character = null; Transform parent = GetFrom.transform.parent; if (parent) { obj = parent.Find("Controls").gameObject; } if (obj) { character = obj.GetComponent <BaseCharacterController>(); } return(character); }
virtual public void OnHit(BaseCharacterController Attacker) { }
public void OnKnockback(BaseCharacterController CharacterPushing, float strength, float time) { MovementController tomove = CharacterPushing.movementController; movementController.GetPushedFrom(tomove, strength, time); }
void Start() { Setup(); instance = this; }