Ejemplo n.º 1
0
 private void Start()
 {
     controller = GetComponent <Controller>();
     animator   = controller.animator;
     animParam  = controller.animParam;
     myCollider = GetComponent <Collider>();
 }
Ejemplo n.º 2
0
 public static void SetAnimParam(AnimatorParameter animatorParameter)
 {
     if (animParam == null)
     {
         animParam = animatorParameter;
     }
 }
Ejemplo n.º 3
0
        protected virtual void Awake()
        {
            GM.SetPlayer(this);
            bodyPart = new BodyPart(transform);

            if (animator == null)
            {
                animator  = GetComponent <Animator>();
                animParam = new AnimatorParameter(animator);
                GM.SetAnimParam(animParam);
            }

            thirdPersonCamera = gameObject.AddComponent <ThirdPersonCamera>();
            footPlacement     = gameObject.AddComponent <FootPlacement>();
            detector          = gameObject.AddComponent <Detector>();
            equipHolster      = gameObject.AddComponent <EquipHolster>();
            attacking         = gameObject.AddComponent <Attacking>();
            gaugeManager      = FindObjectOfType <GaugeManager>();
            InstantiateTrails();
        }