Beispiel #1
0
        // Start is called before the first frame update
        void Start()
        {
            playerManager   = GetComponent <PlayerManager>();
            rigidbody       = GetComponent <Rigidbody>();
            inputHandler    = GetComponent <InputHandler>();
            animatorHandler = GetComponentInChildren <AnimatorHandler>();
            cameraObject    = Camera.main.transform;
            myTransform     = transform;
            animatorHandler.Initialize();

            playerManager.isGrounded = true;
            ignoreForGroundCheck     = ~(1 << 8 | 1 << 11);
        }
Beispiel #2
0
 private void Awake()
 {
     animatorHandler = GetComponentInChildren <AnimatorHandler>();
 }