Beispiel #1
0
    void Start()
    {
        if (!animator)
        {
            animator = GetComponent <Animator>();
        }
        if (!movement)
        {
            movement = GetComponent <Physics2DMovement>();
        }

        animKeyPossessed = Animator.StringToHash("Possessed");
        noRaycastLayer   = LayerMask.NameToLayer("Ignore Raycast");
    }
Beispiel #2
0
    void Awake()
    {
        if (!animator)
        {
            animator = GetComponent <Animator>();
        }
        if (!movement)
        {
            movement = GetComponent <Physics2DMovement>();
        }

        animKeyPossessed     = Animator.StringToHash("Possessed");
        animKeyInputStrength = Animator.StringToHash("InputStrength");
        animKeyJump          = Animator.StringToHash("Jump");
    }