Beispiel #1
0
    void TrashOptionIsPressed()
    {
        // Reset reusable lights etc for directing attention to certain changes
        ResetStates();

        switch (chosenOption)
        {
        case "optionA":
            print("Trash: optionA activated");
            increaseIntensity = -3f;
            GreenerCloudsLight();
            InstantiateTrashInLandfill();
            InstantiateTrashInLandfill();
            InstantiateTrashInLandfill();
            InstantiateTrashInLandfill();
            InstantiateTrashInLandfill();
            InstantiateTrashInLandfill();
            InstantiateTrashInLandfill();

            break;

        case "optionB":
            print("Trash: optionB activated");
            increaseIntensity = 2.2f;
            GreenerCloudsLight();
            InstantiateTrashAtSea();
            InstantiateTrashAtSea();
            InstantiateTrashAtSea();
            InstantiateTrashAtSea();
            InstantiateTrashAtSea();
            InstantiateTrashAtSea();
            InstantiateTrashAtSea();

            InstantiateTrashAtLand();
            InstantiateTrashAtLand();
            InstantiateTrashAtLand();
            InstantiateTrashAtLand();
            InstantiateTrashAtLand();
            InstantiateTrashAtLand();
            InstantiateTrashAtLand();
            InstantiateTrashAtLand();
            InstantiateTrashAtLand();
            InstantiateTrashAtLand();
            InstantiateTrashAtLand();
            InstantiateTrashAtLand();

            KillFish01();
            KillFish02();
            KillFish03();

            TrashSeaLight.SetActive(true);
            TrashSeaLight.transform.DOMoveY(12.72f, 10.0f);

            TrashSeaLight2.SetActive(true);
            TrashSeaLight2.transform.DOMoveY(12.72f, 10.0f);


            break;

        case "optionC":
            print("Trash: optionC activated");
            increaseIntensity = 0.8f;
            GreenerCloudsLight();
            KillFish02();

            InstantiateTrashInLandfill();
            InstantiateTrashInLandfill();
            InstantiateTrashInLandfill();
            InstantiateTrashInLandfill();
            InstantiateTrashInLandfill();
            InstantiateTrashAtSea();
            InstantiateTrashAtSea();
            InstantiateTrashAtSea();
            InstantiateTrashAtLand();
            InstantiateTrashAtLand();
            InstantiateTrashAtLand();



            break;

        case "optionD":
            print("Trash: optionD doesn't exist");
            break;
        }
        show = !show;
        TrashUIDisplay.SetActive(show);
    }
Beispiel #2
0
 void TrashIsReleased()
 {
     print("Trash activated");
     show = !show;
     TrashUIDisplay.SetActive(show);
 }