using System.Collections;
using System.Collections.Generic;
public class MentalGame : MonoBehaviour
private GameObject mapCell;
private GamificationManager m_kGamificationManager;
private float Timer = 0.0f;
private GameObject exerciseTextHolder;
private bool gameActivated = false;
private GameObject startButton;
private ExerciseExecutionMenu pageController;
m_kGamificationManager = gameObject.findObjectComponent
< GamificationManager >( "GamificationManager" );
pageController = gameObject.findObjectComponent
< ExerciseExecutionMenu >( "MentalPanel" );
exerciseTextHolder = GameObject.Find( "TimerHolder" );
startButton = GameObject.Find( "StartButton" );
if ( !MentalGameProcessor.gameEnd() )
exerciseTextHolder.GetComponent < Text >().text =
else if ( MentalGameProcessor.gameEnd() )
startButton.SetActive(true);
m_kGamificationManager.raiseSeedsAmount();
public void activateGame()
startButton.SetActive( false );
MentalGameProcessor.GenerateMap(
4, 4, mapCell , gameObject.transform , 100f );
startButton.SetActive( true );
MentalGameProcessor.CleanMap();