Fix animator controller null
This commit is contained in:
parent
833a6dc239
commit
6bd6385320
@ -116,7 +116,6 @@ GameObject:
|
|||||||
- component: {fileID: 942517983172744734}
|
- component: {fileID: 942517983172744734}
|
||||||
- component: {fileID: 6626013070899547236}
|
- component: {fileID: 6626013070899547236}
|
||||||
- component: {fileID: 2583614104625117143}
|
- component: {fileID: 2583614104625117143}
|
||||||
- component: {fileID: 5253688626057906789}
|
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Mage
|
m_Name: Mage
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
@ -181,44 +180,6 @@ CapsuleCollider:
|
|||||||
m_Height: 3
|
m_Height: 3
|
||||||
m_Direction: 1
|
m_Direction: 1
|
||||||
m_Center: {x: 0, y: 1, z: 0}
|
m_Center: {x: 0, y: 1, z: 0}
|
||||||
--- !u!114 &5253688626057906789
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 459278858401451172}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 9b8c4a61274f60b4ea5fb4299cfdbf14, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
ShowLayerWeightsInspector: 1
|
|
||||||
ShowParameterInspector: 1
|
|
||||||
m_SynchronizeParameters:
|
|
||||||
- Type: 1
|
|
||||||
SynchronizeType: 1
|
|
||||||
Name: movementSpeed
|
|
||||||
- Type: 9
|
|
||||||
SynchronizeType: 0
|
|
||||||
Name: throw
|
|
||||||
- Type: 1
|
|
||||||
SynchronizeType: 1
|
|
||||||
Name: throwingTime
|
|
||||||
- Type: 1
|
|
||||||
SynchronizeType: 1
|
|
||||||
Name: castingTime
|
|
||||||
- Type: 9
|
|
||||||
SynchronizeType: 0
|
|
||||||
Name: cast
|
|
||||||
- Type: 9
|
|
||||||
SynchronizeType: 0
|
|
||||||
Name: melee
|
|
||||||
m_SynchronizeLayers:
|
|
||||||
- SynchronizeType: 1
|
|
||||||
LayerIndex: 0
|
|
||||||
- SynchronizeType: 1
|
|
||||||
LayerIndex: 1
|
|
||||||
--- !u!1 &549845267327255927
|
--- !u!1 &549845267327255927
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -65,6 +65,7 @@ PrefabInstance:
|
|||||||
objectReference: {fileID: 0}
|
objectReference: {fileID: 0}
|
||||||
m_RemovedComponents:
|
m_RemovedComponents:
|
||||||
- {fileID: 1973983944860229583, guid: 78e91c3f61b3c724fbdc0ad0d233215e, type: 3}
|
- {fileID: 1973983944860229583, guid: 78e91c3f61b3c724fbdc0ad0d233215e, type: 3}
|
||||||
|
- {fileID: 6567432688714911206, guid: 78e91c3f61b3c724fbdc0ad0d233215e, type: 3}
|
||||||
m_SourcePrefab: {fileID: 100100000, guid: 78e91c3f61b3c724fbdc0ad0d233215e, type: 3}
|
m_SourcePrefab: {fileID: 100100000, guid: 78e91c3f61b3c724fbdc0ad0d233215e, type: 3}
|
||||||
--- !u!1001 &1677119893261753703
|
--- !u!1001 &1677119893261753703
|
||||||
PrefabInstance:
|
PrefabInstance:
|
||||||
|
@ -34,10 +34,13 @@ public class CharacterAnimatorController : MonoBehaviour
|
|||||||
{
|
{
|
||||||
parentController = GetComponentInParent<CharacterAnimatorParent>();
|
parentController = GetComponentInParent<CharacterAnimatorParent>();
|
||||||
Debug.Log("OnEnable: parentController is " + (parentController != null ? "not null" : "null"));
|
Debug.Log("OnEnable: parentController is " + (parentController != null ? "not null" : "null"));
|
||||||
|
|
||||||
|
if (photonView.IsMine)
|
||||||
CastBarHandler.Instance.OnCastingStateChanged.AddListener(UpdateIsCastingState);
|
CastBarHandler.Instance.OnCastingStateChanged.AddListener(UpdateIsCastingState);
|
||||||
}
|
}
|
||||||
private void OnDisable()
|
private void OnDisable()
|
||||||
{
|
{
|
||||||
|
if (photonView.IsMine)
|
||||||
CastBarHandler.Instance.OnCastingStateChanged.RemoveListener(UpdateIsCastingState);
|
CastBarHandler.Instance.OnCastingStateChanged.RemoveListener(UpdateIsCastingState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ Material:
|
|||||||
- _Mode: 0
|
- _Mode: 0
|
||||||
- _OcclusionStrength: 1
|
- _OcclusionStrength: 1
|
||||||
- _Parallax: 0.02
|
- _Parallax: 0.02
|
||||||
- _Rotation: 9.902162
|
- _Rotation: 8.234241
|
||||||
- _SmoothnessTextureChannel: 0
|
- _SmoothnessTextureChannel: 0
|
||||||
- _SpecularHighlights: 1
|
- _SpecularHighlights: 1
|
||||||
- _SrcBlend: 1
|
- _SrcBlend: 1
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user