Exemplo n.º 1
0
    protected override IEnumerator _Tutorial()
    {
        canvasParent.sortingLayerName = "Default";
        Setup();
        MicroMixFinger finger = MicroMixManager.Instance.finger;

        finger.gameObject.SetActive(true);
        FireItem fireItem = GetComponentInChildren <FireItem>();

        fireItem.GetComponent <Animation>().Play();
        Vector3 button = fireItem.gameObject.transform.position;
        Vector3 offset = new Vector3(0, 1);

        yield return(finger.MoveTo(button + offset, button, delay: .3f, time: .3f));

        fireItem.Engage();
        yield return(MicroMixManager.Instance.WaitSecondsPause(.72f));

        fireItem.Disengage();

        yield return(finger.MoveTo(button, button + offset, delay: 0, time: .3f));

        finger.gameObject.SetActive(false);

        UpdateSize(minSize);
        canvasParent.sortingLayerName = "uGUI";
    }
Exemplo n.º 2
0
    protected override IEnumerator _Tutorial()
    {
        MicroMixFinger finger = MicroMixManager.Instance.finger;

        finger.gameObject.SetActive(true);
        yield return(finger.MoveTo(spacer.transform.position, inhaler.transform.position, delay: .5f, time: 1f));

        finger.gameObject.SetActive(false);
    }
Exemplo n.º 3
0
    protected override IEnumerator _Tutorial()
    {
        MicroMixFinger finger = MicroMixManager.Instance.finger;

        finger.gameObject.SetActive(true);
        RemoveCapItem cap = inhaler.GetComponentInChildren <RemoveCapItem>();

        yield return(finger.MoveTo(cap.transform.position, cap.transform.position + cap.animDelta, delay: .5f, time: 1f));

        finger.gameObject.SetActive(false);
    }
Exemplo n.º 4
0
    protected override IEnumerator _Tutorial()
    {
        Setup(true);
        MicroMixFinger finger = MicroMixManager.Instance.finger;

        finger.gameObject.SetActive(true);
        foreach (MoldItem mold in moldItems)
        {
            yield return(finger.MoveTo(mold.transform.position, trashItem.transform.position, .2f, .4f));
        }
        finger.gameObject.SetActive(false);
    }
Exemplo n.º 5
0
    protected override IEnumerator _Tutorial()
    {
        MicroMixFinger finger = MicroMixManager.Instance.finger;

        finger.gameObject.SetActive(true);
        yield return(finger.MoveTo(inhaler.transform.position, inhaler.transform.position + Vector3.down * 2, .3f, .15f));

        for (int i = 0; i < 2; i++)
        {
            yield return(finger.ShakeToBack(inhaler.transform.position + Vector3.down * 2, inhaler.transform.position + Vector3.up * 1, 0, .3f));
        }

        finger.gameObject.SetActive(false);
    }
Exemplo n.º 6
0
    protected override IEnumerator _Tutorial()
    {
        petInstance = (GameObject)Instantiate(petPrefab, Vector3.zero, Quaternion.identity);
        petInstance.transform.SetParent(transform);

        MicroMixFinger finger = MicroMixManager.Instance.finger;

        finger.gameObject.SetActive(true);
        Vector3 mouthPos = petInstance.GetComponent <MicroMixAnatomy>().mouth.transform.position;

        yield return(finger.MoveTo(mouthPos, mouthPos + Vector3.right * 5, delay: .5f, time: 1f));

        finger.gameObject.SetActive(false);
        complete = false;
    }
Exemplo n.º 7
0
    protected override IEnumerator _Tutorial()
    {
        petInstance = (GameObject)Instantiate(petPrefab, Vector3.zero, Quaternion.identity);
        petInstance.transform.SetParent(transform);
        do
        {
            scarfItem.transform.position   = CameraUtils.RandomWorldPointOnScreen(Camera.main, .1f, .1f, 0);
            petInstance.transform.position = CameraUtils.RandomWorldPointOnScreen(Camera.main, .2f, .2f, 0);
        } while (Vector3.Distance(scarfItem.transform.position, petInstance.transform.position) < 4f);
        lastPos = petInstance.transform.position;
        MicroMixFinger finger = MicroMixManager.Instance.finger;

        finger.gameObject.SetActive(true);
        Vector3 neckPos = petInstance.GetComponent <MicroMixAnatomy>().neck.transform.position;

        yield return(finger.MoveTo(scarfItem.transform.position, neckPos, delay: .5f, time: 1f));

        Destroy(petInstance);
        MicroMixManager.Instance.finger.gameObject.SetActive(false);
    }