Example #1
0
    protected void InitializedLockedConfirmBox()
    {
        var _lockedPanels = GameObject.FindGameObjectsWithTag("LockedPanel");

        _lockedPanel = _lockedPanels.Where(lp => lp.name == "LockedPanel").FirstOrDefault();
        _lockedBox   = _lockedPanel.GetComponent <ConfirmBox>();
        _lockedBox.InitializeThePanel();
        _lockedBox.DeactivateConfirmBox();
    }
Example #2
0
    protected void InitializeConfirmBox()
    {
        var _confirmPanels = GameObject.FindGameObjectsWithTag("ConfirmPanel");

        _confirmPanel = _confirmPanels.Where(cp => cp.name == "ConfirmPanel").FirstOrDefault();
        _confirmBox   = _confirmPanel.GetComponent <ConfirmBox>();
        _confirmBox.InitializeThePanel();
        _confirmBox.DeactivateConfirmBox();
    }