File tree Expand file tree Collapse file tree 3 files changed +10
-19
lines changed Expand file tree Collapse file tree 3 files changed +10
-19
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,6 @@ public class JCS_UtilManager : JCS_Manager<JCS_UtilManager>
25
25
[ ReadOnly ]
26
26
private JCS_MixDamageTextPool mMixDamageTextPool = null ;
27
27
28
- [ Tooltip ( "In Game Log System util." ) ]
29
- [ SerializeField ]
30
- [ ReadOnly ]
31
- private JCS_IGLogSystem mIGLogSystem = null ;
32
-
33
28
[ Separator ( "Initialize Variables (JCS_UtilManager)" ) ]
34
29
35
30
[ Tooltip ( "Trasnparent sprite." ) ]
@@ -38,14 +33,11 @@ public class JCS_UtilManager : JCS_Manager<JCS_UtilManager>
38
33
39
34
/* Setter & Getter */
40
35
36
+ public Sprite SpriteTransparent { get { return this . mSpriteTransparent ; } }
37
+
41
38
public void SetMixDamageTextPool ( JCS_MixDamageTextPool tp ) { this . mMixDamageTextPool = tp ; }
42
39
public JCS_MixDamageTextPool GetMixDamageTextPool ( ) { return this . mMixDamageTextPool ; }
43
40
44
- public void SetIGLogSystem ( JCS_IGLogSystem sys ) { this . mIGLogSystem = sys ; }
45
- public JCS_IGLogSystem GetIGLogSystem ( ) { return this . mIGLogSystem ; }
46
-
47
- public Sprite SpriteTransparent { get { return this . mSpriteTransparent ; } }
48
-
49
41
/* Functions */
50
42
51
43
private void Awake ( )
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ public class JCS_IGLogSystem : JCS_UnityObject
20
20
{
21
21
/* Variables */
22
22
23
+ public static JCS_IGLogSystem instance = null ;
24
+
23
25
private JCS_GUITextPool mLogTextPool = null ;
24
26
25
27
#if UNITY_EDITOR
@@ -61,17 +63,13 @@ protected override void Awake()
61
63
{
62
64
base . Awake ( ) ;
63
65
66
+ instance = this ;
67
+
64
68
this . mLogTextPool = this . GetComponent < JCS_GUITextPool > ( ) ;
65
69
66
70
mRenderLogText = new JCS_Vec < JCS_LogText > ( ) ;
67
71
}
68
72
69
- private void Start ( )
70
- {
71
- // set to utility manager.
72
- JCS_UtilManager . instance . SetIGLogSystem ( this ) ;
73
- }
74
-
75
73
#if UNITY_EDITOR
76
74
private void Update ( )
77
75
{
Original file line number Diff line number Diff line change @@ -94,12 +94,13 @@ public override void Die()
94
94
// minus monster count.
95
95
-- bggm . MOB_CURRENT_IN_SCENE ;
96
96
97
- var utilm = JCS_UtilManager . instance ;
98
- if ( utilm . GetIGLogSystem ( ) != null )
97
+ var igls = JCS_IGLogSystem . instance ;
98
+
99
+ if ( igls != null )
99
100
{
100
101
string expMsg = BF_MessageSettings . instance . EXP_BASE + EXP . ToString ( ) ;
101
102
102
- utilm . GetIGLogSystem ( ) . SendLogMessage ( expMsg ) ;
103
+ igls . SendLogMessage ( expMsg ) ;
103
104
}
104
105
105
106
base . Die ( ) ;
You can’t perform that action at this time.
0 commit comments