void Start() { buildPC = Resources.Load <BoolVariable>("BuildPC"); anim = GetComponent <Animator>(); dogAnim = GetComponent <DogAnim>(); dogController = GetComponent <AIController2D>(); inputController = FindObjectOfType <InputController>(); CalculateJumpStats(); }
void RetrieveAnims() { if (playerAnim == null) { playerAnim = FindObjectOfType <PlayerAnimator>(); } if (dogAnimScript == null) { dogAnimScript = GetComponent <DogAnim>(); } }