Example #1
0
    private void Update()
    {
        currentX += Input.GetAxis("Mouse X");
        currentY += Input.GetAxis("Mouse Y");

        check = GameObject.Find("Canvas").GetComponent <OnOffUI>();

        character = GameObject.Find("CharacterPivot");

        cameraOrigin = this.transform.position;
    }
Example #2
0
    private void Update()
    {
        PlayFootsteps();

        check = GameObject.Find("Canvas").GetComponent <OnOffUI>();
    }