예제 #1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            CheckTouch(Input.mousePosition);
        }

        else if (Input.GetMouseButton(0))
        {
            CheckTouch2(Input.mousePosition);
        }

        if (Input.GetMouseButtonUp(0))
        {
            CheckTouch3(Input.mousePosition);
        }

        if (owlieSet && !owlieSlider.Sliding() && Time.time > timeStamp + cooldown)
        {
            GetRandomOwlie();
            cooldown  = Random.Range(.5f, 3.0f);
            timeStamp = Time.time;
        }
    }