Ejemplo n.º 1
0
        // Collects all of the scripts used for the player
        void Start()
        {
            inputHandler      = GetComponent <InputHandler>();
            playerLocomotion  = GetComponent <PlayerLocomotion>();
            checkSurroundings = GetComponent <CheckSurroundings>();
            anim = GetComponentInChildren <Animator>();

            isInteracting = false;
        }
Ejemplo n.º 2
0
 private void Awake()
 {
     checkSurroundings = GetComponent <CheckSurroundings>();
     playerManager     = GetComponent <PlayerManager>();
 }