IEnumerator StartWaterTutorial()
    {
        triggered = true;
        babyMoveCon.ToRandom(true);
        controlUI.SetActive(false);
        route13.MoveToNumPos(2);
        yield return(new WaitForSeconds(waitForButterflyTime));

        butterFly.parent.gameObject.SetActive(true); // butterfly in

        MainCamCon mainCamCon;                       // set camera

        mainCamCon         = Camera.main.GetComponent <MainCamCon>();
        mainCamCon.target  = butterFly;
        mainCamCon.offsetX = 0f;
        mainCamCon.offsetZ = 0f;
        mainCamCon.Zoom(6f);
    }
Beispiel #2
0
 public void Step1()              //go to butterfly point
 {
     babyMoveCon.ToRandom(false); //make sure in random state
 }