Skip to content

Commit ec262e5

Browse files
committed
fix: null ref error
1 parent 1c52e01 commit ec262e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Scripts/GameApi/LiteNetLibTransform.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public Vector3 GetScale(Vector3 defaultScale)
140140
public uint InitialInterpTick { get; private set; }
141141
public uint RenderTick => _interpTick - interpolationTicks;
142142

143-
private void Start()
143+
public override void OnIdentityInitialize()
144144
{
145145
Manager.LogicUpdater.OnTick += LogicUpdater_OnTick;
146146
_interpFromData = _interpToData = new TransformData()
@@ -151,7 +151,7 @@ private void Start()
151151
};
152152
}
153153

154-
private void OnDestroy()
154+
public override void OnIdentityDestroy()
155155
{
156156
Manager.LogicUpdater.OnTick -= LogicUpdater_OnTick;
157157
}

0 commit comments

Comments
 (0)