Example #1
0
 void Start()
 {
     playerManager   = GetComponent <PlayerManager>();
     rigidbody       = GetComponent <Rigidbody>();
     inputHandler    = GetComponent <InputHandler>();
     animatorHandler = GetComponentInChildren <AnimatorHandler>();
     cameraObject    = Camera.main.transform;
     myTransform     = transform;
     animatorHandler.initialize();
 }
        void Start()
        {
            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);
        }