Ejemplo n.º 1
0
    //  public GameObject arrow2;
    // Use this for initialization
    void Start()
    {
        flowertext      = flowercount.GetComponent <Text>();
        flowertext.text = "0";
        Chooseorbs.SetActive(false);
        BoyMove = GetComponent <BoyMove2>();
        manager = gamemanager.GetComponent <GameManagerSec>();
        boyanim = this.GetComponent <Animator>();

        pushsource  = gameObject.AddComponent <AudioSource>();
        firesound   = fireparticle.GetComponent <AudioSource>();
        boyaudio    = GetComponent <AudioSource>();
        enemyanim   = enemy.GetComponent <Animator>();
        enemyscript = enemy.GetComponent <Enemy>();

        mist    = manager.GetComponent <DemoWalk>();
        cameraT = maincamera.GetComponent <Transform>();
        rainparticle1.SetActive(false);
        rainparticle2.SetActive(false);
        rainparticle3.SetActive(false);


        jiao1.gameObject.SetActive(false);
        jiao1grass.SetActive(false);
        jiao1aliveparticle.SetActive(false);

        jiao2.gameObject.SetActive(false);
        jiao2grass.SetActive(false);
        jiao2aliveparticle.SetActive(false);

        jiao3.gameObject.SetActive(false);
        jiao3grass.SetActive(false);
        jiao3aliveparticle.SetActive(false);

        holdR.SetActive(false);

        Treeparticle.SetActive(false);

        flowertree.SetActive(false);
        spinlifeparticle.SetActive(false);
        flowergroup.SetActive(false);

        desertui.SetActive(false);
        jiaoparticle1.SetActive(false);
        jiaoparticle2.SetActive(false);
        jiaoparticle3.SetActive(false);

        desert.SetActive(false);
        greenslider.gameObject.SetActive(false);
        lifewallcircle.SetActive(false);
        forestobj.SetActive(false);

        gameendingsnow.SetActive(false);
        endingui.SetActive(false);
        girlendingtext.SetActive(false);
        //    deer.SetActive(false);

        endingaudio      = this.gameObject.AddComponent <AudioSource>();
        endingaudio.clip = girlendingclip;


        thanksforplaying.SetActive(false);
        exitbutton.SetActive(false);
        arrow.SetActive(false);
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     gamemanager = boymanager.GetComponent <GameManagerSec>();
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     manager     = boymanager.GetComponent <GameManagerSec>();
     interaction = boy.GetComponent <Interaction>();
 }