Пример #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();
        }
Пример #2
0
 protected abstract void InitUserButtons(FriendButtonsUI buttons);