Beispiel #1
0
    void Start()
    {
        playerRBody = GetComponent <Rigidbody>();
        playerRBody.maxAngularVelocity = 3.0f;

        originalMass = playerRBody.mass;
        animator     = GetComponentInChildren <Animator>();
        //print (animator.name);
        clingComponent = GetComponentInChildren <PlayerCling>();
        //print (clingComponent.name);
        var audioSources = GetComponents <AudioSource>();

        meowSound  = GetComponent <AudioSource>();
        pushMeow   = audioSources[1];
        isGrounded = false;
        isJumping  = false;

        //currentAngle = getAngle(transform.forward.z, transform.forward.x);
    }