Exemplo n.º 1
0
    void Start()
    {
        buildPC         = Resources.Load <BoolVariable>("BuildPC");
        anim            = GetComponent <Animator>();
        dogAnim         = GetComponent <DogAnim>();
        dogController   = GetComponent <AIController2D>();
        inputController = FindObjectOfType <InputController>();

        CalculateJumpStats();
    }
Exemplo n.º 2
0
 void RetrieveAnims()
 {
     if (playerAnim == null)
     {
         playerAnim = FindObjectOfType <PlayerAnimator>();
     }
     if (dogAnimScript == null)
     {
         dogAnimScript = GetComponent <DogAnim>();
     }
 }