public void StartGameButton() { SettingsMenu.SetActive(false); BrushSpawner.SetActive(true); int xPos = 0, yPos = 0; SetCursorPos(xPos, yPos); }
void MenuSettingsActive() { if (Input.GetKey(KeyCode.M)) { SettingsMenu.SetActive(true); BrushSpawner.SetActive(false); } }
void MenuSettingsActive() { if (Input.GetKey(KeyCode.M)) { SettingsMenu.SetActive(true); BrushSpawner.SetActive(false); for (int i = ParentBrushForDestroy.transform.childCount; i > 0; --i) { DestroyImmediate(ParentBrushForDestroy.transform.GetChild(0).gameObject); } } }
public void StartGameButton() { SettingsMenu.SetActive(false); BrushSpawner.SetActive(true); }