性能优化与检测, 防止假死机
This commit is contained in:
@@ -137,9 +137,16 @@ namespace Demo.Game
|
||||
{
|
||||
yield return base.DoSomethingDuringApplyScript();
|
||||
MyMeshGenerator = this.GetOrAddComponent<TMeshGenerator>();
|
||||
MyMeshGenerator.spline = MySplineCore.MySplineComputer;
|
||||
SetupMeshGenerator(MyMeshGenerator);
|
||||
MyMeshGenerator.RebuildImmediate();
|
||||
if (MySplineCore)
|
||||
{
|
||||
MyMeshGenerator.spline = MySplineCore.MySplineComputer;
|
||||
SetupMeshGenerator(MyMeshGenerator);
|
||||
MyMeshGenerator.RebuildImmediate();
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError($"{nameof(MySplineCore)} not setup", this);
|
||||
}
|
||||
}
|
||||
|
||||
#region SetupMeshGenerator
|
||||
|
||||
Reference in New Issue
Block a user