コード例 #1
0
    protected override void Start()
    {
        base.Start();

        condensedVapourAmount = 0;
        evaporationAmount     = 0;
        transpirationAmount   = 0;
        waterInPool           = 0;

        totalEvaporationNeeded = transpirationNeeded + evaporationNeeded;

        objectiveLevelTxt5_0 = new EchoMessage("Now you have to implement the entire cycle on your own. Let's see what you remember!", objectiveClip5_0, 1);
        objectiveLevelTxt5_1 = new EchoMessage("You have finished the collection part of the water cycle. But what comes next?", objectiveClip5_1, 1);
        objectiveLevelTxt5_2 = new EchoMessage("You have successfully evaporated water from surface bodies of water, but remember that some of the evaporated water has to come from some other source.", objectiveClip5_2, 1);
        objectiveLevelTxt5_3 = new EchoMessage("Now we just need to make sure the water we evaporated comes back to the ground. Time to explore the mountain to the west to find a way up into the atmosphere.", objectiveClip5_3, 1);
        objectiveLevelTxt5_4 = new EchoMessage("You have completed the water cycle! The condensed water vapour falls back onto the ground and the cycle begins anew with collection, followed by evaporation/transpiration and finishing with condensation.", objectiveClip5_4, 1);
        objectiveLevelTxt5_5 = new EchoMessage("You have successfully initiated the process of transpiration! But the majority of the evaporated water has to come from some other source.", objectiveClip5_5, 1);

        echo.addMessage(objectiveLevelTxt5_0);

        for (int i = 0; i < rainParent.transform.childCount; i++)
        {
            rainParent.transform.GetChild(i).GetComponent <ParticleSystem>().Pause();
        }


        steamManager = GameObject.Find("RisingSteam").GetComponent <RisingSteamManager>();

        waterParentSmall = GameObject.Find("WaterPoolS");
        waterParentLarge = GameObject.Find("WaterPoolL");
        bubbleParent     = GameObject.Find("BubbleParent");
        sun = GameObject.Find("sun2").GetComponent <HeatSpawner>();
    }
コード例 #2
0
    protected override void Start()
    {
        base.Start();

        amountOfWaterInPool     = 0;
        amountOfEvaporatedWater = 0;

        nextLevelMarker.SetActive(false);

        attributes    = player.GetComponent <PlayerAttributes>();
        waterPControl = player.GetComponent <WaterPourController>();

        steamManager = GameObject.Find("RisingSteam").GetComponent <RisingSteamManager>();
        waterParentL = GameObject.Find("WaterPoolL");
        waterParentS = GameObject.Find("WaterPoolS");
        bubbleParent = GameObject.Find("BubbleParent");
    }