예제 #1
0
    public void StartGameButton()
    {
        SettingsMenu.SetActive(false);
        BrushSpawner.SetActive(true);
        int xPos = 0, yPos = 0;

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