public GameObject OpenCanvas(GameObject _canvas, bool flg) { ui_basement canvas = Instantiate(_canvas).GetComponent <ui_basement>(); canvas.Activate(); return(canvas.gameObject); }
public GameObject OpenCanvas(int id) { if (_currentCanvas) { _currentCanvas.DeActivate(); } _currentCanvas = Instantiate(canvasList[id]).GetComponent <ui_basement>(); _currentCanvas.Activate(); return(_currentCanvas.gameObject); }
public void CloseCanvas(ui_basement _canvas) { _canvas.DeActivate(); }
public void CloseCanvas() { _currentCanvas.DeActivate(); _currentCanvas = null; }