Exemple #1
0
    private void StartGameFlow()
    {
        adController.RequestInterstitial();

        if (FLogger.Ready)
        {
            FLogger.LogEvent(
                Firebase.Analytics.FirebaseAnalytics.EventLevelStart,
                Firebase.Analytics.FirebaseAnalytics.ParameterLevelName,
                GetLevelName()
                );
        }
        StatesFlow = RandomizeStateList(new List <State>(States));

        if (StateToFlag || StateToCapital)
        {
            transform.GetComponentsInChildren <SpriteRenderer>().ToList()
            .ForEach(spriteRenderer => spriteRenderer.enabled = false);
        }
    }