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); } }
private void Start() { thankYouAlpha.IntendedAlpha = 1.0f; ScreenEffects.FadeIn(3.0f); }
private void Start() { ScreenEffects.FadeIn(1.6f); AudioController.Instance.SetLoopVolume(0.0f); cameraControl = Camera.main.GetComponent <CameraControl>(); }