|
@@ -43,6 +43,8 @@ public class StaticLod : MonoBehaviour
|
|
|
}
|
|
|
|
|
|
public void OnFoucusStatic(int i) {
|
|
|
+ if (currentStatic != null)
|
|
|
+ currentStatic.ReleaseSacnMode();
|
|
|
if (i < 0)
|
|
|
{
|
|
|
currentStatic = staticImportants[staticImportants.Count - math.abs(i)];
|
|
@@ -56,6 +58,8 @@ public class StaticLod : MonoBehaviour
|
|
|
|
|
|
public int OnFoucusStatic(StaticImportant si)
|
|
|
{
|
|
|
+ if (currentStatic != null)
|
|
|
+ currentStatic.ReleaseSacnMode();
|
|
|
currentStatic = si;
|
|
|
currentStatic.ForceSacnMode();
|
|
|
return staticImportants.IndexOf(si);
|
|
@@ -63,6 +67,8 @@ public class StaticLod : MonoBehaviour
|
|
|
|
|
|
public void OnFoucusStatic(string name_pri)
|
|
|
{
|
|
|
+ if (currentStatic != null)
|
|
|
+ currentStatic.ReleaseSacnMode();
|
|
|
currentStatic = staticImportantsDic[name_pri];
|
|
|
currentStatic.ForceSacnMode();
|
|
|
}
|