Beispiel #1
0
    public void EnableCanvas(bool value)
    {
        isEnabled = value;
        GetComponent <Canvas>().enabled = isEnabled;
        GotoPosition();

        if (!isEnabled)
        {
            ClosePanel?.Invoke();
        }
        else
        {
            OpenPanel?.Invoke();
        }

        //any other stuff required for disabling/enabling canvas goes here
    }
 protected void Close()
 {
     ClosePanel?.Invoke();
 }
 private void Close()
 {
     ClosePanel?.Invoke(this, EventArgs.Empty);
 }