update sample
parent
67574bf759
commit
ebc25c401d
|
@ -1,5 +1,83 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &2894094678118443804
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3005946438868630613}
|
||||
- component: {fileID: 4741618138862755453}
|
||||
- component: {fileID: 2950043487044765300}
|
||||
m_Layer: 5
|
||||
m_Name: version
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3005946438868630613
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2894094678118443804}
|
||||
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: 4142826567245113224}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 0}
|
||||
m_AnchoredPosition: {x: -136.19, y: 84.1}
|
||||
m_SizeDelta: {x: 272.37756, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4741618138862755453
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2894094678118443804}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &2950043487044765300
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2894094678118443804}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_FontData:
|
||||
m_Font: {fileID: 12800000, guid: 8297a2bf97dbbba468bd2518d003a876, type: 3}
|
||||
m_FontSize: 22
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 1
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 3
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: 'Ver : 2022/xx/xx-xxxx'
|
||||
--- !u!1 &3580699901832812969
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -150,6 +228,7 @@ RectTransform:
|
|||
m_Children:
|
||||
- {fileID: 3112899034949946423}
|
||||
- {fileID: 2165109262903650435}
|
||||
- {fileID: 3005946438868630613}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
|
|
@ -59,8 +59,6 @@ public class BattleRoom
|
|||
/// </summary>
|
||||
public void DestroyRoom()
|
||||
{
|
||||
Debug.LogWarning("DestroyRoom");
|
||||
|
||||
if (_musicHandle != null)
|
||||
_musicHandle.Release();
|
||||
|
||||
|
|
|
@ -31,7 +31,6 @@ internal class FsmSceneHome : IStateNode
|
|||
|
||||
private IEnumerator Prepare()
|
||||
{
|
||||
Debug.LogWarning("LoadScene Home");
|
||||
yield return YooAssets.LoadSceneAsync("scene_home");
|
||||
yield return UniWindow.OpenWindowAsync<UIHomeWindow>("UIHome");
|
||||
yield return new WaitForSeconds(0.5f);
|
||||
|
|
|
@ -7,8 +7,12 @@ using UniFramework.Window;
|
|||
[WindowAttribute(100, false)]
|
||||
public class UIHomeWindow : UIWindow
|
||||
{
|
||||
private Text _version;
|
||||
|
||||
public override void OnCreate()
|
||||
{
|
||||
_version = this.transform.Find("version").GetComponent<Text>();
|
||||
|
||||
var loginBtn = this.transform.Find("Start").GetComponent<Button>();
|
||||
loginBtn.onClick.AddListener(OnClickLoginBtn);
|
||||
|
||||
|
@ -20,6 +24,8 @@ public class UIHomeWindow : UIWindow
|
|||
}
|
||||
public override void OnRefresh()
|
||||
{
|
||||
var package = YooAsset.YooAssets.GetAssetsPackage("DefaultPackage");
|
||||
_version.text = "Ver : " + package.GetPackageVersion();
|
||||
}
|
||||
public override void OnUpdate()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue