From 09bc892c7283df8757a07b646d5af21ddaa263d1 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期四, 06 十一月 2025 18:22:34 +0800
Subject: [PATCH] 164 天子的考验-客户端
---
Main/System/Redpoint/Redpoint.cs | 120 +++++++++++++++++++++++++++++++-----------------------------
1 files changed, 62 insertions(+), 58 deletions(-)
diff --git a/Main/System/Redpoint/Redpoint.cs b/Main/System/Redpoint/Redpoint.cs
index 1f68524..1de7f2f 100644
--- a/Main/System/Redpoint/Redpoint.cs
+++ b/Main/System/Redpoint/Redpoint.cs
@@ -2,63 +2,67 @@
using System.Collections.Generic;
using UnityEngine;
-
- public class Redpoint
- {
- int m_Id = 0;
- public int id {
- get { return m_Id; }
- private set { m_Id = value; }
- }
- int m_Parent = 0;
- public int parent {
- get { return m_Parent; }
- private set { m_Parent = value; }
- }
-
- RedPointState m_State = RedPointState.None;
- public RedPointState state {
- get { return m_State; }
- set {
- if (m_State != value)
- {
- m_State = value;
- RedpointCenter.Instance.Report(this);
- }
- }
- }
-
- int m_Count = 0;
- public int count {
- get { return m_Count; }
- set {
- if (m_Count != value)
- {
- m_Count = value;
- RedpointCenter.Instance.ReportWithoutParent(this);
- }
- }
- }
-
- public Redpoint(int _id)
- {
- id = _id;
- RedpointCenter.Instance.Register(this);
- }
-
- public Redpoint(int _parent, int _id)
- {
- if (_parent <= 0)
- {
- Debug.Log("鏃犳晥鐨勭埗瀵硅薄Id锛�");
- return;
- }
-
- parent = _parent;
- id = _id;
- RedpointCenter.Instance.Register(this);
- }
-
- public int RedpoindId { get; internal set; }
+public class Redpoint
+{
+ int m_Id = 0;
+ public int id {
+ get { return m_Id; }
+ private set { m_Id = value; }
}
+
+ int m_Parent = 0;
+ public int parent
+ {
+ get { return m_Parent; }
+ private set { m_Parent = value; }
+ }
+
+ public int otherParent;
+
+
+ RedPointState m_State = RedPointState.None;
+ public RedPointState state {
+ get { return m_State; }
+ set {
+ if (m_State != value)
+ {
+ m_State = value;
+ RedpointCenter.Instance.Report(this);
+ }
+ }
+ }
+
+ int m_Count = 0;
+ public int count {
+ get { return m_Count; }
+ set {
+ if (m_Count != value)
+ {
+ m_Count = value;
+ RedpointCenter.Instance.ReportWithoutParent(this);
+ }
+ }
+ }
+
+ public Redpoint(int _id)
+ {
+ id = _id;
+ RedpointCenter.Instance.Register(this);
+ }
+
+ public Redpoint(int _parent, int _id)
+ {
+ if (_parent <= 0)
+ {
+ Debug.Log("鏃犳晥鐨勭埗瀵硅薄Id锛�");
+ return;
+ }
+
+ parent = _parent;
+ id = _id;
+ RedpointCenter.Instance.Register(this);
+ }
+
+ public int RedpoindId { get; internal set; }
+}
--
Gitblit v1.8.0