main接入活动

This commit is contained in:
wulongxiao 2024-11-27 11:25:42 +08:00
parent 964191a973
commit 4d93016346
19 changed files with 266 additions and 80 deletions

View File

@ -1807,6 +1807,7 @@ GameObject:
- component: {fileID: 278122027}
- component: {fileID: 278122026}
- component: {fileID: 278122030}
- component: {fileID: 278122031}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
@ -1913,6 +1914,20 @@ MonoBehaviour:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
_mainBTN: {fileID: 332514051}
--- !u!114 &278122031
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 278122025}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5bf0a41c64fbf844c9acc94bc1152324, type: 3}
m_Name:
m_EditorClassIdentifier:
_canvas: {fileID: 278122028}
panelPrefab: {fileID: 499058875926005686, guid: fd127a1747aec274e9335d11591e4f0a, type: 3}
--- !u!1 &278944241
GameObject:
m_ObjectHideFlags: 0

View File

@ -15,13 +15,12 @@ public class Scene_main_jiekou :Base
private void Awake()
{
instance = this;
getInfo();
//getInfo();
}
async void getInfo()
{
//base.testLogo();
await StartAsync();
Debug.Log(_realPlayerInfo.data.nickName);
Debug.Log(_realPlayerInfo.data.voluteCoin);

View File

@ -0,0 +1,23 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
//显示动画
public class main_BaseShowPanel : MonoBehaviour
{
[Header("父类自动的panel按需要给")]
public GameObject _panel;
public void showPanel(GameObject panel)
{
if (panel == null)
{
Debug.LogError("panel==null");
return;
}
panel.transform.localScale = new Vector3(0.5f, 0.5f, 0.5f);
panel.transform.DOScale(1f, 0.8f);
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4999ac9e2d00dab43af68e90868a428f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -16,8 +16,6 @@ public class main_shop :BaseUIPanel
btn.onClick.AddListener(() =>asyncOnShopBTN(btn));
}
public async void asyncOnShopBTN(Button BTN)
{
await ButtonClickAnimationAsync(BTN.gameObject);

View File

@ -0,0 +1,19 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class scene_main_init : MonoBehaviour
{
[Header("作为父节点的canvas")]
public Canvas _canvas;
[Header("需要生成的预制体")]
public GameObject panelPrefab;
// Start is called before the first frame update
void Start()
{
GameObject newPanel= GameObject.Instantiate(panelPrefab,_canvas.transform);
//newPanel.transform.localScale = new Vector3(0.5f, 0.5f, 0.5f);
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5bf0a41c64fbf844c9acc94bc1152324
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -68,4 +68,6 @@ public class BaseUIPanel : Base
Destroy(gameObject);
}
}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4e3cd6c9c08188b48b69fc0d960de169
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,14 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ui_huodong :main_BaseShowPanel
{
// Start is called before the first frame update
void Start()
{
base.showPanel(base._panel);
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c95363cad8b348746bb23e5c2999c90d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,12 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ui_huodongguize :main_BaseShowPanel
{
void Start()
{
base.showPanel(base._panel);
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ebf4a4b2a031fd04bb99d649a36edb43
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ui_huodongxiangqing :main_BaseShowPanel
{
void Start()
{
base.showPanel(base._panel);
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3eb2c504995a88a4a814a130d4ae95cd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -463,6 +463,7 @@ GameObject:
- component: {fileID: 499058875926005685}
- component: {fileID: 499058875926005683}
- component: {fileID: 499058875926005684}
- component: {fileID: 6595102338907946265}
m_Layer: 5
m_Name: huodong
m_TagString: Untagged
@ -483,7 +484,7 @@ RectTransform:
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 499058876202855931}
- {fileID: 7523801677764145654}
- {fileID: 5425866488925246728}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -530,6 +531,19 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &6595102338907946265
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 499058875926005686}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c95363cad8b348746bb23e5c2999c90d, type: 3}
m_Name:
m_EditorClassIdentifier:
_panel: {fileID: 499058876202855932}
--- !u!1 &499058876078584823
GameObject:
m_ObjectHideFlags: 0
@ -1258,7 +1272,7 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1001 &3135945049552226299
--- !u!1001 &621629213912326917
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
@ -1323,15 +1337,15 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792269, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_LocalRotation.x
value: -0
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792269, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_LocalRotation.y
value: -0
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792269, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_LocalRotation.z
value: -0
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792269, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_AnchoredPosition.x
@ -1353,38 +1367,29 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
value: 6
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
- target: {fileID: 5044707777241721125, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: retbutton
value:
objectReference: {fileID: 5425866488925246731}
- target: {fileID: 5044707777241721125, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: ClosureObj
value:
objectReference: {fileID: 499058875926005686}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_CallState
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
value: SetActive
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
value: UnityEngine.GameObject, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName
value: UnityEngine.Object, UnityEngine
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: dac544bca4358514d949413f04b4421c, type: 3}
--- !u!224 &7523801677764145654 stripped
--- !u!224 &5425866488925246728 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 4894555910357792269, guid: dac544bca4358514d949413f04b4421c, type: 3}
m_PrefabInstance: {fileID: 3135945049552226299}
m_PrefabInstance: {fileID: 621629213912326917}
m_PrefabAsset: {fileID: 0}
--- !u!114 &5425866488925246731 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
m_PrefabInstance: {fileID: 621629213912326917}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:

View File

@ -539,6 +539,7 @@ GameObject:
- component: {fileID: 499058875926005685}
- component: {fileID: 499058875926005683}
- component: {fileID: 499058875926005684}
- component: {fileID: 3544125792843658023}
m_Layer: 5
m_Name: huodongguize
m_TagString: Untagged
@ -606,6 +607,19 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &3544125792843658023
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 499058875926005686}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ebf4a4b2a031fd04bb99d649a36edb43, type: 3}
m_Name:
m_EditorClassIdentifier:
_panel: {fileID: 499058876202855932}
--- !u!1 &499058876109961379
GameObject:
m_ObjectHideFlags: 0
@ -1439,34 +1453,14 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
value: 1
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
value: 6
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
- target: {fileID: 5044707777241721125, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: retbutton
value:
objectReference: {fileID: 9092932991162484607}
- target: {fileID: 5044707777241721125, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: ClosureObj
value:
objectReference: {fileID: 499058875926005686}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_CallState
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
value: SetActive
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
value: UnityEngine.GameObject, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName
value: UnityEngine.Object, UnityEngine
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: dac544bca4358514d949413f04b4421c, type: 3}
--- !u!224 &9092932991162484604 stripped
@ -1474,3 +1468,14 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 4894555910357792269, guid: dac544bca4358514d949413f04b4421c, type: 3}
m_PrefabInstance: {fileID: 4457546351089135985}
m_PrefabAsset: {fileID: 0}
--- !u!114 &9092932991162484607 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
m_PrefabInstance: {fileID: 4457546351089135985}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:

View File

@ -463,6 +463,7 @@ GameObject:
- component: {fileID: 499058875926005685}
- component: {fileID: 499058875926005683}
- component: {fileID: 499058875926005684}
- component: {fileID: 8830959524925691507}
m_Layer: 5
m_Name: huodongxiangqing
m_TagString: Untagged
@ -530,6 +531,19 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &8830959524925691507
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 499058875926005686}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 3eb2c504995a88a4a814a130d4ae95cd, type: 3}
m_Name:
m_EditorClassIdentifier:
_panel: {fileID: 499058876202855932}
--- !u!1 &499058876078584823
GameObject:
m_ObjectHideFlags: 0
@ -1067,7 +1081,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
@ -1093,6 +1107,14 @@ PrefabInstance:
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName
value: UnityEngine.Object, UnityEngine
objectReference: {fileID: 0}
- target: {fileID: 5044707777241721125, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: retbutton
value:
objectReference: {fileID: 8847518330792082534}
- target: {fileID: 5044707777241721125, guid: dac544bca4358514d949413f04b4421c, type: 3}
propertyPath: ClosureObj
value:
objectReference: {fileID: 499058875926005686}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: dac544bca4358514d949413f04b4421c, type: 3}
--- !u!224 &8847518330792082533 stripped
@ -1100,3 +1122,14 @@ RectTransform:
m_CorrespondingSourceObject: {fileID: 4894555910357792269, guid: dac544bca4358514d949413f04b4421c, type: 3}
m_PrefabInstance: {fileID: 4117494714808420968}
m_PrefabAsset: {fileID: 0}
--- !u!114 &8847518330792082534 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 4894555910357792270, guid: dac544bca4358514d949413f04b4421c, type: 3}
m_PrefabInstance: {fileID: 4117494714808420968}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:

View File

@ -27,7 +27,7 @@ RectTransform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4894555910357792268}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
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_ConstrainProportionsScale: 0
@ -122,19 +122,7 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 4894555910357792271}
m_OnClick:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 0}
m_TargetAssemblyTypeName:
m_MethodName:
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName:
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_Calls: []
--- !u!114 &5044707777241721125
MonoBehaviour:
m_ObjectHideFlags: 0
@ -148,8 +136,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
btn: {fileID: 4894555910357792270}
panel: {fileID: 0}
ClosureObj: {fileID: 0}
--- !u!1 &4894555911772163770
GameObject:
m_ObjectHideFlags: 0