예제 #1
0
    private void Awake()
    {
        GameObject LoadData = GameObject.Find("MainMenu");

        _PlayGridHolder = GetComponent <PlayGridHolder>();
        savePlayGrid    = LoadData.GetComponent <MainMenuHendler>().PlayGrid;
        newPlayGrid     = _PlayGridHolder.CreatNewPlaygrid(savePlayGrid._hight, savePlayGrid._width, savePlayGrid._cellsize, savePlayGrid.GetGridOrinie());
        _gameManager    = GetComponent <GameManager>();
        Load();
        Destroy(LoadData);
    }