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(); }
protected abstract void InitUserButtons(FriendButtonsUI buttons);