private void ResetPaintAndMark() { ResetPaint(); CurrentPaintMark = null; ToggleUI(false); }
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); } }
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); }
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(); } } }