|
|
@@ -189,7 +189,7 @@ public class CustomStateController : MonoBehaviour, ISerializationCallbackReceiv
|
|
|
stateInfo.UIStateV4Types.Add(UIStateType.TextColor);
|
|
|
stateInfo.UIStateV4Datas.Add(vector4);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
if (AllComsStateTypes[i].HasFlag(UIStateType.TmpColor))
|
|
|
{
|
|
|
Vector4 vector4 = go.GetComponent<TextMeshProUGUI>().color;
|
|
|
@@ -200,7 +200,15 @@ public class CustomStateController : MonoBehaviour, ISerializationCallbackReceiv
|
|
|
|
|
|
if (AllComsStateTypes[i].HasFlag(UIStateType.OutLineColor))
|
|
|
{
|
|
|
- Vector4 vector4 = go.GetComponent<Outline>().effectColor;
|
|
|
+ Vector4 vector4 = default;
|
|
|
+ if (go.GetComponent<Outline>() != null)
|
|
|
+ {
|
|
|
+ vector4 = go.GetComponent<Outline>().effectColor;
|
|
|
+ }
|
|
|
+ else if (go.GetComponent<NicerOutline>() != null)
|
|
|
+ {
|
|
|
+ vector4 = go.GetComponent<NicerOutline>().effectColor;
|
|
|
+ }
|
|
|
|
|
|
stateInfo.UIStateV4Types.Add(UIStateType.OutLineColor);
|
|
|
stateInfo.UIStateV4Datas.Add(vector4);
|
|
|
@@ -329,7 +337,15 @@ public class CustomStateController : MonoBehaviour, ISerializationCallbackReceiv
|
|
|
break;
|
|
|
case UIStateType.OutLineColor:
|
|
|
Color outLineColorData = keyValuePair.UIStateV4Datas[i];
|
|
|
- go.GetComponent<Outline>().effectColor = outLineColorData;
|
|
|
+ if (go.GetComponent<Outline>() != null)
|
|
|
+ {
|
|
|
+ go.GetComponent<Outline>().effectColor = outLineColorData;
|
|
|
+ }
|
|
|
+ else if (go.GetComponent<NicerOutline>() != null)
|
|
|
+ {
|
|
|
+ go.GetComponent<NicerOutline>().effectColor = outLineColorData;
|
|
|
+ }
|
|
|
+
|
|
|
break;
|
|
|
|
|
|
case UIStateType.CustomState:
|