Exemple #1
0
    private void ResetPaintAndMark()
    {
        ResetPaint();
        CurrentPaintMark = null;

        ToggleUI(false);
    }
Exemple #2
0
    private void MarkDestroyed()
    {
        CurrentPaintMark = null;

        if (PlayerManager.instance.entity == myEntity)
        {
            NotificationManager.instance.NewNotification("<color=#" + GameManager.personalColorString + "> " + PhotonNetwork.NickName + "'s</color> mark has been destroyed!", NotificationManager.NotificationType.MarkDestroyed);
        }
    }
Exemple #3
0
    public void MarkCaptured()
    {
        CurrentPaintMark = null;

        if (PlayerManager.instance.entity == myEntity)
        {
            SaveManager.instance.SaveStat(SaveManager.SavedStat.GamePointsGained);
            NotificationManager.instance.NewNotification("<color=#" + GameManager.personalColorString + "> " + PhotonNetwork.NickName + "</color> has gained a game-point!", NotificationManager.NotificationType.MarkCaptured);
        }

        ScoreboardManager.instance.RegisterPlayerGamePoint(myPlayerManager.photonView.ViewID);
    }
Exemple #4
0
 public void SyncMark(bool hasMark, int markType = 0, float markValue = 0)
 {
     if (hasMark)
     {
         if (CurrentPaintMark == null)
         {
             CurrentPaintMark = new PaintMark {
                 markType = (PaintType)markType, markValue = markValue
             };
         }
         else
         {
             SyncMarkValue(markValue);
         }
     }
     else
     {
         if (CurrentPaintMark != null)
         {
             MarkDestroyed();
         }
     }
 }