曹衍涛
5 years ago
51 changed files with 495772 additions and 392052 deletions
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,242 @@ |
|||||||
|
%YAML 1.1 |
||||||
|
%TAG !u! tag:unity3d.com,2011: |
||||||
|
--- !u!1 &4368387102949125001 |
||||||
|
GameObject: |
||||||
|
m_ObjectHideFlags: 0 |
||||||
|
m_CorrespondingSourceObject: {fileID: 0} |
||||||
|
m_PrefabInstance: {fileID: 0} |
||||||
|
m_PrefabAsset: {fileID: 0} |
||||||
|
serializedVersion: 6 |
||||||
|
m_Component: |
||||||
|
- component: {fileID: 5031298119362188117} |
||||||
|
- component: {fileID: 1942663332367282972} |
||||||
|
- component: {fileID: 1187558931666410053} |
||||||
|
- component: {fileID: 631480425402582244} |
||||||
|
- component: {fileID: 847455802468170799} |
||||||
|
- component: {fileID: 6030985401630052929} |
||||||
|
- component: {fileID: 2095911882945132050} |
||||||
|
m_Layer: 5 |
||||||
|
m_Name: ExitButton |
||||||
|
m_TagString: Untagged |
||||||
|
m_Icon: {fileID: 0} |
||||||
|
m_NavMeshLayer: 0 |
||||||
|
m_StaticEditorFlags: 0 |
||||||
|
m_IsActive: 1 |
||||||
|
--- !u!224 &5031298119362188117 |
||||||
|
RectTransform: |
||||||
|
m_ObjectHideFlags: 0 |
||||||
|
m_CorrespondingSourceObject: {fileID: 0} |
||||||
|
m_PrefabInstance: {fileID: 0} |
||||||
|
m_PrefabAsset: {fileID: 0} |
||||||
|
m_GameObject: {fileID: 4368387102949125001} |
||||||
|
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: |
||||||
|
- {fileID: 5692336923954697264} |
||||||
|
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: 777.2, y: 0.75} |
||||||
|
m_SizeDelta: {x: 55.95, y: 57.5} |
||||||
|
m_Pivot: {x: 0.5, y: 0.5} |
||||||
|
--- !u!222 &1942663332367282972 |
||||||
|
CanvasRenderer: |
||||||
|
m_ObjectHideFlags: 0 |
||||||
|
m_CorrespondingSourceObject: {fileID: 0} |
||||||
|
m_PrefabInstance: {fileID: 0} |
||||||
|
m_PrefabAsset: {fileID: 0} |
||||||
|
m_GameObject: {fileID: 4368387102949125001} |
||||||
|
m_CullTransparentMesh: 0 |
||||||
|
--- !u!114 &1187558931666410053 |
||||||
|
MonoBehaviour: |
||||||
|
m_ObjectHideFlags: 0 |
||||||
|
m_CorrespondingSourceObject: {fileID: 0} |
||||||
|
m_PrefabInstance: {fileID: 0} |
||||||
|
m_PrefabAsset: {fileID: 0} |
||||||
|
m_GameObject: {fileID: 4368387102949125001} |
||||||
|
m_Enabled: 1 |
||||||
|
m_EditorHideFlags: 0 |
||||||
|
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3} |
||||||
|
m_Name: |
||||||
|
m_EditorClassIdentifier: |
||||||
|
m_Material: {fileID: 0} |
||||||
|
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 |
||||||
|
m_Sprite: {fileID: 21300000, guid: 63af67fdf3535e348824a6884f0a927f, type: 3} |
||||||
|
m_Type: 0 |
||||||
|
m_PreserveAspect: 0 |
||||||
|
m_FillCenter: 1 |
||||||
|
m_FillMethod: 4 |
||||||
|
m_FillAmount: 1 |
||||||
|
m_FillClockwise: 1 |
||||||
|
m_FillOrigin: 0 |
||||||
|
m_UseSpriteMesh: 0 |
||||||
|
--- !u!114 &631480425402582244 |
||||||
|
MonoBehaviour: |
||||||
|
m_ObjectHideFlags: 0 |
||||||
|
m_CorrespondingSourceObject: {fileID: 0} |
||||||
|
m_PrefabInstance: {fileID: 0} |
||||||
|
m_PrefabAsset: {fileID: 0} |
||||||
|
m_GameObject: {fileID: 4368387102949125001} |
||||||
|
m_Enabled: 1 |
||||||
|
m_EditorHideFlags: 0 |
||||||
|
m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3} |
||||||
|
m_Name: |
||||||
|
m_EditorClassIdentifier: |
||||||
|
m_Navigation: |
||||||
|
m_Mode: 3 |
||||||
|
m_SelectOnUp: {fileID: 0} |
||||||
|
m_SelectOnDown: {fileID: 0} |
||||||
|
m_SelectOnLeft: {fileID: 0} |
||||||
|
m_SelectOnRight: {fileID: 0} |
||||||
|
m_Transition: 1 |
||||||
|
m_Colors: |
||||||
|
m_NormalColor: {r: 1, g: 1, b: 1, a: 1} |
||||||
|
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} |
||||||
|
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} |
||||||
|
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} |
||||||
|
m_ColorMultiplier: 1 |
||||||
|
m_FadeDuration: 0.1 |
||||||
|
m_SpriteState: |
||||||
|
m_HighlightedSprite: {fileID: 0} |
||||||
|
m_PressedSprite: {fileID: 0} |
||||||
|
m_DisabledSprite: {fileID: 0} |
||||||
|
m_AnimationTriggers: |
||||||
|
m_NormalTrigger: Normal |
||||||
|
m_HighlightedTrigger: Highlighted |
||||||
|
m_PressedTrigger: Pressed |
||||||
|
m_DisabledTrigger: Disabled |
||||||
|
m_Interactable: 1 |
||||||
|
m_TargetGraphic: {fileID: 1187558931666410053} |
||||||
|
m_OnClick: |
||||||
|
m_PersistentCalls: |
||||||
|
m_Calls: [] |
||||||
|
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0, |
||||||
|
Culture=neutral, PublicKeyToken=null |
||||||
|
--- !u!114 &847455802468170799 |
||||||
|
MonoBehaviour: |
||||||
|
m_ObjectHideFlags: 0 |
||||||
|
m_CorrespondingSourceObject: {fileID: 0} |
||||||
|
m_PrefabInstance: {fileID: 0} |
||||||
|
m_PrefabAsset: {fileID: 0} |
||||||
|
m_GameObject: {fileID: 4368387102949125001} |
||||||
|
m_Enabled: 1 |
||||||
|
m_EditorHideFlags: 0 |
||||||
|
m_Script: {fileID: 11500000, guid: 55475a7d97e0f00459a5739bca447956, type: 3} |
||||||
|
m_Name: |
||||||
|
m_EditorClassIdentifier: |
||||||
|
--- !u!114 &6030985401630052929 |
||||||
|
MonoBehaviour: |
||||||
|
m_ObjectHideFlags: 0 |
||||||
|
m_CorrespondingSourceObject: {fileID: 0} |
||||||
|
m_PrefabInstance: {fileID: 0} |
||||||
|
m_PrefabAsset: {fileID: 0} |
||||||
|
m_GameObject: {fileID: 4368387102949125001} |
||||||
|
m_Enabled: 1 |
||||||
|
m_EditorHideFlags: 0 |
||||||
|
m_Script: {fileID: 11500000, guid: 6e39c327f4d4f474186d8845f48f9af7, type: 3} |
||||||
|
m_Name: |
||||||
|
m_EditorClassIdentifier: |
||||||
|
gameObjID: 0 |
||||||
|
gameObjType: 120 |
||||||
|
UserID: 0 |
||||||
|
--- !u!114 &2095911882945132050 |
||||||
|
MonoBehaviour: |
||||||
|
m_ObjectHideFlags: 0 |
||||||
|
m_CorrespondingSourceObject: {fileID: 0} |
||||||
|
m_PrefabInstance: {fileID: 0} |
||||||
|
m_PrefabAsset: {fileID: 0} |
||||||
|
m_GameObject: {fileID: 4368387102949125001} |
||||||
|
m_Enabled: 1 |
||||||
|
m_EditorHideFlags: 0 |
||||||
|
m_Script: {fileID: 11500000, guid: 3e67630d6e91a7d40a61b9de02f46e8b, type: 3} |
||||||
|
m_Name: |
||||||
|
m_EditorClassIdentifier: |
||||||
|
mess: {fileID: 0} |
||||||
|
--- !u!1 &9150410427588410447 |
||||||
|
GameObject: |
||||||
|
m_ObjectHideFlags: 0 |
||||||
|
m_CorrespondingSourceObject: {fileID: 0} |
||||||
|
m_PrefabInstance: {fileID: 0} |
||||||
|
m_PrefabAsset: {fileID: 0} |
||||||
|
serializedVersion: 6 |
||||||
|
m_Component: |
||||||
|
- component: {fileID: 5692336923954697264} |
||||||
|
- component: {fileID: 3315418534188559414} |
||||||
|
- component: {fileID: 3113217601995414850} |
||||||
|
m_Layer: 5 |
||||||
|
m_Name: Text |
||||||
|
m_TagString: Untagged |
||||||
|
m_Icon: {fileID: 0} |
||||||
|
m_NavMeshLayer: 0 |
||||||
|
m_StaticEditorFlags: 0 |
||||||
|
m_IsActive: 1 |
||||||
|
--- !u!224 &5692336923954697264 |
||||||
|
RectTransform: |
||||||
|
m_ObjectHideFlags: 0 |
||||||
|
m_CorrespondingSourceObject: {fileID: 0} |
||||||
|
m_PrefabInstance: {fileID: 0} |
||||||
|
m_PrefabAsset: {fileID: 0} |
||||||
|
m_GameObject: {fileID: 9150410427588410447} |
||||||
|
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: 5031298119362188117} |
||||||
|
m_RootOrder: 0 |
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
||||||
|
m_AnchorMin: {x: 0, y: 0.5} |
||||||
|
m_AnchorMax: {x: 0, y: 0.5} |
||||||
|
m_AnchoredPosition: {x: 56.2, y: 0.25001} |
||||||
|
m_SizeDelta: {x: 56, y: 58} |
||||||
|
m_Pivot: {x: 0, y: 0.5} |
||||||
|
--- !u!222 &3315418534188559414 |
||||||
|
CanvasRenderer: |
||||||
|
m_ObjectHideFlags: 0 |
||||||
|
m_CorrespondingSourceObject: {fileID: 0} |
||||||
|
m_PrefabInstance: {fileID: 0} |
||||||
|
m_PrefabAsset: {fileID: 0} |
||||||
|
m_GameObject: {fileID: 9150410427588410447} |
||||||
|
m_CullTransparentMesh: 0 |
||||||
|
--- !u!114 &3113217601995414850 |
||||||
|
MonoBehaviour: |
||||||
|
m_ObjectHideFlags: 0 |
||||||
|
m_CorrespondingSourceObject: {fileID: 0} |
||||||
|
m_PrefabInstance: {fileID: 0} |
||||||
|
m_PrefabAsset: {fileID: 0} |
||||||
|
m_GameObject: {fileID: 9150410427588410447} |
||||||
|
m_Enabled: 1 |
||||||
|
m_EditorHideFlags: 0 |
||||||
|
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3} |
||||||
|
m_Name: |
||||||
|
m_EditorClassIdentifier: |
||||||
|
m_Material: {fileID: 0} |
||||||
|
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 |
||||||
|
m_FontData: |
||||||
|
m_Font: {fileID: 12800000, guid: eb3d4c61201564c4a83060e3db7ad0cb, type: 3} |
||||||
|
m_FontSize: 22 |
||||||
|
m_FontStyle: 0 |
||||||
|
m_BestFit: 0 |
||||||
|
m_MinSize: 2 |
||||||
|
m_MaxSize: 40 |
||||||
|
m_Alignment: 4 |
||||||
|
m_AlignByGeometry: 0 |
||||||
|
m_RichText: 1 |
||||||
|
m_HorizontalOverflow: 0 |
||||||
|
m_VerticalOverflow: 0 |
||||||
|
m_LineSpacing: 1 |
||||||
|
m_Text: "\u9000\u51FA" |
@ -0,0 +1,7 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 68d2d976d53f36643bc657c38931be79 |
||||||
|
PrefabImporter: |
||||||
|
externalObjects: {} |
||||||
|
userData: |
||||||
|
assetBundleName: |
||||||
|
assetBundleVariant: |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,45 @@ |
|||||||
|
using AX.NetworkSystem; |
||||||
|
using System.Collections; |
||||||
|
using System.Collections.Generic; |
||||||
|
using UnityEngine; |
||||||
|
using UnityEngine.SceneManagement; |
||||||
|
|
||||||
|
public class ExitDrillButton : BaseButton |
||||||
|
{ |
||||||
|
public MessagePanel mess; |
||||||
|
private void Start() |
||||||
|
{ |
||||||
|
mess = transform.parent.parent.parent.Find("MessagePanel").GetComponent<MessagePanel>(); |
||||||
|
} |
||||||
|
// Start is called before the first frame update |
||||||
|
public override void RespondFun() |
||||||
|
{ |
||||||
|
mess.MessageBoxShow("返回到角色选择"); |
||||||
|
mess.SureAction = ExitToSelect; |
||||||
|
|
||||||
|
|
||||||
|
} |
||||||
|
private void ExitToSelect() |
||||||
|
{ |
||||||
|
EntitiesManager.Instance.Reset();//跳转场景时要清空实体管理器中的对象 |
||||||
|
|
||||||
|
//准备状态下的用户离开时需要初始化准备状态,避免再进入房间直接就是准备状态 |
||||||
|
UserData user = CurrentUserInfo.room.FindUserById(CurrentUserInfo.mySelf.Id); |
||||||
|
user.IsReady = false; |
||||||
|
CurrentUserInfo.room = null; |
||||||
|
EnterRoomPair data = new EnterRoomPair |
||||||
|
{ |
||||||
|
RoomId = CurrentUserInfo.room == null ? -1 : CurrentUserInfo.room.Id, |
||||||
|
UserData = new UserData() |
||||||
|
{ |
||||||
|
UserInfo = CurrentUserInfo.mySelf, |
||||||
|
Role = CurrentUserInfo.role, |
||||||
|
Org = CurrentUserInfo.organization, |
||||||
|
IsReady = false, |
||||||
|
}, |
||||||
|
TargetScene = GoTo.RolesSelection, |
||||||
|
}; |
||||||
|
NetworkManager.Default.SendAsync("ROOM_LEAVE_SYNC", data); |
||||||
|
SceneManager.LoadScene(GoTo.RolesSelection.ToString()); |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,11 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 3e67630d6e91a7d40a61b9de02f46e8b |
||||||
|
MonoImporter: |
||||||
|
externalObjects: {} |
||||||
|
serializedVersion: 2 |
||||||
|
defaultReferences: [] |
||||||
|
executionOrder: 0 |
||||||
|
icon: {instanceID: 0} |
||||||
|
userData: |
||||||
|
assetBundleName: |
||||||
|
assetBundleVariant: |
Binary file not shown.
@ -1 +1 @@ |
|||||||
m_EditorVersion: 5.6.3f1 |
m_EditorVersion: 2018.4.0f1 |
||||||
|
Binary file not shown.
Loading…
Reference in new issue