Exemplo n.º 1
0
    void OnEnable()
    {
        whoIsCallMe = DesktopRootReferenceManager.getInstance().contextualMenuManager.whoIsCallMe;
        if (colorSelectedItem == Color.clear)
        {
            menu = DesktopRootReferenceManager.getInstance().contextualMenuManager;
            colorSelectedItem   = menu.colorSelectedItem;
            colorUnselectedItem = menu.colorUnselectedItem;
        }

        if (sRenderer == null)
        {
            sRenderer = GetComponent <SpriteRenderer>();
        }
        sRenderer.color = colorUnselectedItem;
        this.doOnEnable();
    }
Exemplo n.º 2
0
 public void showDialog(MenuCaller whoIsCallMe)
 {
     this.whoIsCallMe = whoIsCallMe;
     DesktopRootReferenceManager.getInstance().isADialogOpened = true;
     this.gameObject.SetActive(true);
 }