This commit is contained in:
Nim-XD
2025-06-08 14:06:45 +05:30
parent d3fd9e9620
commit 476d016df6
220 changed files with 3317 additions and 30731 deletions

View File

@@ -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)