commit spine
parent
122c86444a
commit
68e88e0f0d
|
|
@ -0,0 +1,85 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &6215064165438005737
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 747127079216296264}
|
||||||
|
- component: {fileID: 7703660334273445023}
|
||||||
|
- component: {fileID: 7396289312394494236}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: live2d_npc_map_nv
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &747127079216296264
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6215064165438005737}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &7703660334273445023
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6215064165438005737}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &7396289312394494236
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6215064165438005737}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d85b887af7e6c3f45a2e2d2920d641bc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 2100000, guid: b66cf7a186d13054989b33a5c90044e4, type: 2}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||||
|
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||||
|
skeletonDataAsset: {fileID: 11400000, guid: 797d02381f7ed57458ebbceefb9aa0c6, type: 2}
|
||||||
|
initialSkinName: default
|
||||||
|
initialFlipX: 0
|
||||||
|
initialFlipY: 0
|
||||||
|
startingAnimation: idle
|
||||||
|
startingLoop: 1
|
||||||
|
timeScale: 1
|
||||||
|
freeze: 0
|
||||||
|
unscaledTime: 0
|
||||||
|
meshGenerator:
|
||||||
|
settings:
|
||||||
|
useClipping: 1
|
||||||
|
zSpacing: 0
|
||||||
|
pmaVertexColors: 1
|
||||||
|
tintBlack: 0
|
||||||
|
calculateTangents: 0
|
||||||
|
addNormals: 0
|
||||||
|
immutableTriangles: 0
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: fcb70f688759d324ab67dece6d4fd848
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
|
@ -33,14 +33,20 @@ function MainPlayerView.New(isSelf, root, rect, pos)
|
||||||
scale = sex == ROLE_SEX.BOY and 1 or 0.5
|
scale = sex == ROLE_SEX.BOY and 1 or 0.5
|
||||||
|
|
||||||
instance.NpcGO = poolManager:LoadAsset(npc, PoolManager.AssetType.GameObject)
|
instance.NpcGO = poolManager:LoadAsset(npc, PoolManager.AssetType.GameObject)
|
||||||
instance.NpcGO:SetActive(true)
|
if not instance.NpcGO then
|
||||||
instance.NpcGO.transform:SetParent(instance.roleRootTran)
|
LogRed("npc:"..npc.."资源不存在")
|
||||||
instance.NpcGO.transform.localPosition = Vector3.zero
|
else
|
||||||
instance.NpcGO.transform.localScale = Vector3.one * 1.3 * scale
|
instance.NpcGO:SetActive(true)
|
||||||
instance.NpcGO.name = "npc"
|
instance.NpcGO.transform:SetParent(instance.roleRootTran)
|
||||||
instance.SkeletonGraphic = Util.GetGameObject(instance.leader, "roleRoot/npc"):GetComponent("SkeletonAnimation")
|
instance.NpcGO.transform.localPosition = Vector3.zero
|
||||||
instance.SkeletonGraphic.AnimationState:SetAnimation(0, "idle", true)
|
instance.NpcGO.transform.localScale = Vector3.one * 1.3 * scale
|
||||||
instance.SkeletonGraphic.transform.localEulerAngles = Vector3.zero
|
instance.NpcGO.name = "npc"
|
||||||
|
instance.SkeletonGraphic = Util.GetGameObject(instance.leader, "roleRoot/npc"):GetComponent("SkeletonAnimation")
|
||||||
|
instance.SkeletonGraphic.AnimationState:SetAnimation(0, "idle", true)
|
||||||
|
instance.SkeletonGraphic.transform.localEulerAngles = Vector3.zero
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
instance.rect = rect
|
instance.rect = rect
|
||||||
instance.leader:GetComponent("RectTransform").anchoredPosition = pos
|
instance.leader:GetComponent("RectTransform").anchoredPosition = pos
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue