Esempio n. 1
0
 private void Start()
 {
     m_gameTransform       = m_minigame.GetComponentInChildren <mg_if_GameLogic>().transform;
     m_spawnSpeed          = m_minigame.Resources.Variables.StartSpawnSpeed;
     m_spawnLevel          = 10;
     m_spawnGroup          = null;
     m_spawnGroupIndex     = 0;
     m_spawnGroupStartTime = 0f;
     m_runningTime         = 0f;
     CreateGameObjects();
     if (localizer != null)
     {
         SpawnPuffle(localizer.GetTokenTranslation("Activity.MiniGames.FishGoal"));
     }
     else
     {
         SpawnPuffle("Collect 10 fish to win!");
     }
 }
Esempio n. 2
0
        public void Awake()
        {
            mg_IceFishing active = MinigameManager.GetActive <mg_IceFishing>();

            m_gameLogic = active.GetComponentInChildren <mg_if_GameLogic>();
        }