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(); }
// 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(); }
static void Init() { CreateGameGrid grid = (CreateGameGrid)EditorWindow.GetWindow(typeof(CreateGameGrid)); grid.Show(); }