Exemplo n.º 1
0
    public void StartGameButton()
    {
        SettingsMenu.SetActive(false);
        BrushSpawner.SetActive(true);
        int xPos = 0, yPos = 0;

        SetCursorPos(xPos, yPos);
    }
Exemplo n.º 2
0
 void MenuSettingsActive()
 {
     if (Input.GetKey(KeyCode.M))
     {
         SettingsMenu.SetActive(true);
         BrushSpawner.SetActive(false);
     }
 }
Exemplo n.º 3
0
 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);
         }
     }
 }
Exemplo n.º 4
0
 public void StartGameButton()
 {
     SettingsMenu.SetActive(false);
     BrushSpawner.SetActive(true);
 }