コード例 #1
0
        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);
        }
コード例 #2
0
 virtual public void OnHit(BaseCharacterController Attacker)
 {
 }
コード例 #3
0
        public void OnKnockback(BaseCharacterController CharacterPushing, float strength, float time)
        {
            MovementController tomove = CharacterPushing.movementController;

            movementController.GetPushedFrom(tomove, strength, time);
        }
コード例 #4
0
 void Start()
 {
     Setup();
     instance = this;
 }