void Start()
    {
        critterGen = FindObjectOfType<CritterGenerator>();
        myCritter = gameObject.GetComponent<Critter>();

        cloneCritter = false;
        splitTimer = timerResetVal;
        currentTurn = TurnTimer.currentTurn;
    }
    void Start()
    {
        totalCritters = 0;

        critterGenerator = FindObjectOfType<CritterGenerator>();
        turnTimer = FindObjectOfType<TurnTimer>();
        uiControl = FindObjectOfType<UIController>();
        pUnlocksControl = FindObjectOfType<PlayerUnlocksController>();

        PopulateStartSpriteList();

        //Generates game environment
        gameState = state.LOAD;
        GenerateMap();
        GenerateCritters();

        //Starts Game for player
        if(gameState == state.START){
            uiControl.ActivateGameStartPanel();
        }
    }
    public void Submit()
    {
        if (currentState == panelState.ENDGAME)
        {
            Application.Quit();
        }
        else if(MapController.hexSelected){
            critterGen = FindObjectOfType<CritterGenerator>();

            startHex = MapController.hexSelected;
            okButton.GetComponent<Button>().interactable = true;

            if(!critterGen){
                critterGen = FindObjectOfType<CritterGenerator>();
            }
            if(critterGen && currentState == panelState.HEX){
                GameController.SetGameState(GameController.state.PLAY);

                critterGen.Generate(startHex.GetComponent<Hex>(), true);

                StartCoroutine("OpenCritterPanel");
                Deactivate();
            }
        }
        else{
            okButton.GetComponent<Button>().interactable = false;
        }
    }
 void Start()
 {
     critterGen = FindObjectOfType<CritterGenerator>();
     textElements = this.gameObject.GetComponentsInChildren<Text>();
     closeButton = okButton.GetComponent<CloseButton>();
     uiControl = FindObjectOfType<UIController>();
     exPanel = uiControl.GetExpandedPanel();
 }