Ejemplo n.º 1
0
        public void Init(FriendUI friend, FriendButtonsUI userButtons, FriendStatusLineUI statusLine, FriendActionsButton actionsButton)
        {
            Friend        = friend;
            UserButtons   = userButtons;
            ActionsButton = actionsButton;
            StatusLine    = statusLine;

            if (StatusLine != null)
            {
                StatusLine.ClearMessage();
            }

            if (UserButtons != null)
            {
                UserButtons.DisableAll();
                InitUserButtons(UserButtons);
            }

            if (ActionsButton != null)
            {
                ActionsButton.gameObject.SetActive(true);
                ActionsButton.ClearActions();
                InitUserActionsButton(ActionsButton);
            }

            InitOtherElements();
        }
Ejemplo n.º 2
0
 protected abstract void InitUserButtons(FriendButtonsUI buttons);