Example #1
0
    private void Update()
    {
        if (Tutorial && Tutorial.TaskNumber == 1 && Target)
        {
            Tutorial.CompleteTask2();
        }

        if (Target && (Input.GetMouseButtonUp(0) || TimeController.Running))
        {
            Target.Released = true;
            Destroy(Target.RangeIndicator);
            Target = null;

            AudioManager.Drop.Play();
        }
        else if (Input.GetMouseButton(0))
        {
            Drag();
        }
    }