예제 #1
0
    public void LoadCanvas(CanvasID canvasID)
    {
        int _canvasID = (int)canvasID;

        canvasArray[_canvasID].SetActive(true);
        currCanvas.SetActive(false);
    }
예제 #2
0
 public void ActivateCanvas(CanvasID _canvasID, bool value)
 {
     for (int i = 0; i < canvas.Count; i++)
     {
         if (canvas[i].GetComponent <CanvasHandler>().canvasID == _canvasID)
         {
             canvas[i].GetComponent <Canvas>().enabled = value;
         }
     }
 }