Пример #1
0
    // Update is called once per frame
    void Update()
    {
        if (markedCount < areaCount && MergeMultiTarget.instance.isTracking)
        {
            if (Physics.Raycast(Camera.main.transform.position, (MergeMultiTarget.instance.transform.position - Camera.main.transform.position) * 100f, out hit, 100f, layer))
            {
                if (hit.collider.GetComponent <MoveCubeCanvas>())
                {
                    hit.collider.GetComponent <MoveCubeCanvas>().ConfirmAsMarked();
                    hit.collider.enabled = false;
                    markedCount++;

                    PlayCheckmarkSFX();
                    LRController.DisableLine();

                    StartCoroutine(NextCanvas());
                }
            }
        }

        if (LRController != null && LRController.TargetOnScreenFlag())
        {
            if (MergeMultiTarget.instance.isTracking)
            {
                LRController.EnableLine();
            }
            else
            {
                LRController.DisableLine();
            }
        }
    }
Пример #2
0
    public bool IncCheckHoverFlags()
    {
        currentHoveredOn++;
        PlayCheckmarkSFX();
        if (LRController != null)
        {
            LRController.DisableLine();
        }

        if (currentHoveredOn == targetsToSpawn)
        {
            MergeTutorial.ins.AllTargetsLookedAt();
            return(true);
        }

        SpawnTarget();

        return(false);
    }