Пример #1
0
 void Start()// Use this for initialization
 {
     BuildSound  = (AudioClip)Resources.Load("Audio/Sound Effects/RandomSfx/swhit");
     CGG         = gameObject.GetComponent <CreateGameGrid>();
     GameManager = GameObject.Find("GameManager").GetComponent <GameManagerStuff>();
     Grid        = CGG.GetGrid();
 }
Пример #2
0
    // Start is called before the first frame update
    void Start()
    {
        gameGrid = GameObject.FindGameObjectWithTag("GridManager").GetComponent <CreateGameGrid>();

        wood  = 100;
        stone = 100;
        gold  = 10;
        food  = 10;

        textFood.text  = food.ToString();
        textWood.text  = wood.ToString();
        textGold.text  = gold.ToString();
        textStone.text = stone.ToString();
    }
Пример #3
0
    static void Init()
    {
        CreateGameGrid grid = (CreateGameGrid)EditorWindow.GetWindow(typeof(CreateGameGrid));

        grid.Show();
    }