build
This commit is contained in:
@@ -52,7 +52,8 @@ public class invitePlayer : NetworkBehaviour
|
||||
ShowInvite("keyBoard");
|
||||
}
|
||||
}
|
||||
private void OnMouseDown() //clicking on collider
|
||||
private void OnMouseDown() //clicking on collider
|
||||
//ToDo exclude owner
|
||||
{
|
||||
ShowInviteUI();
|
||||
}
|
||||
@@ -85,7 +86,7 @@ public class invitePlayer : NetworkBehaviour
|
||||
{
|
||||
string thisPlayerName = GetComponent<playerNetwork>().playerName;
|
||||
playerNetwork.localPlayer.CmdInvitePlayer(thisPlayerName);
|
||||
HidePanel();
|
||||
CloseInviteUI();
|
||||
}
|
||||
|
||||
public string InviteOwner = "";
|
||||
@@ -102,7 +103,6 @@ public class invitePlayer : NetworkBehaviour
|
||||
.SetEase(Ease.OutBack);
|
||||
}
|
||||
|
||||
|
||||
public void AcceptInvite()
|
||||
{
|
||||
playerNetwork.localPlayer.CmdAcceptInvite(InviteOwner);
|
||||
@@ -113,6 +113,7 @@ public class invitePlayer : NetworkBehaviour
|
||||
{
|
||||
HidePanel();
|
||||
}
|
||||
|
||||
public void HidePanel()
|
||||
{
|
||||
panelRect.DOAnchorPos(offScreenPosition, 0.5f)
|
||||
|
||||
Reference in New Issue
Block a user