Esempio n. 1
0
    public GameObject OpenCanvas(GameObject _canvas, bool flg)
    {
        ui_basement canvas = Instantiate(_canvas).GetComponent <ui_basement>();

        canvas.Activate();

        return(canvas.gameObject);
    }
Esempio n. 2
0
    public GameObject OpenCanvas(int id)
    {
        if (_currentCanvas)
        {
            _currentCanvas.DeActivate();
        }

        _currentCanvas = Instantiate(canvasList[id]).GetComponent <ui_basement>();
        _currentCanvas.Activate();

        return(_currentCanvas.gameObject);
    }