public GameObject OpenCanvas(GameObject _canvas) { if (_currentCanvas) { _currentCanvas.DeActivate(); } _currentCanvas = Instantiate(_canvas).GetComponent <ui_basement>(); _currentCanvas.Activate(); return(_currentCanvas.gameObject); }
public void CloseCanvas(ui_basement _canvas) { _canvas.DeActivate(); }