Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     m_transform     = this.transform;
     ag              = transform.GetComponent <NavMeshAgent>();
     anim            = GetComponent <Animator>();
     interaction     = Target.GetComponent <Interaction>();
     boysource       = boy.GetComponent <AudioSource>();
     signsource      = this.gameObject.AddComponent <AudioSource>();
     signsource.clip = signshowsound;
     boymove         = boy.GetComponent <BoyMove2>();
     desert.SetActive(false);
     evilbtn.SetActive(false);
     mist = manager.GetComponent <DemoWalk>();
     // VolumetricFog fog = VolumetricFog.instance;
     guideshow = evilbtn.GetComponent <evilguide>();
     showunlock.SetActive(false);
     portal2.SetActive(false);
 }
Exemplo n.º 2
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);
    }