示例#1
0
    private void Start()
    {
        ScreenEffects.FadeIn(2.0f);

        AudioController.Instance.PlaySound("rooster");

        AudioController.Instance.SetLoop("store");
        AudioController.Instance.SetLoopVolume(0.0f);
        AudioController.Instance.FadeInLoop(0.12f, 0.45f);

        if (Progress.Offers.Count == 0)
        {
            foreach (var offer in initialOffers)
            {
                Progress.AddOffer(offer);
            }
        }

        foreach (var offer in Progress.Offers)
        {
            GameObject offerGUi = Instantiate(offerGUIPref, optionGroup);
            offerGUi.GetComponent <ShopOfferGUI>().Initialize(offer, description);
        }
    }
示例#2
0
 private void Start()
 {
     thankYouAlpha.IntendedAlpha = 1.0f;
     ScreenEffects.FadeIn(3.0f);
 }
示例#3
0
 private void Start()
 {
     ScreenEffects.FadeIn(1.6f);
     AudioController.Instance.SetLoopVolume(0.0f);
     cameraControl = Camera.main.GetComponent <CameraControl>();
 }