add:添加主机选择人数界面
This commit is contained in:
@@ -50,13 +50,13 @@ Material:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: TechSquare_FilledThick
|
||||
m_Shader: {fileID: -6465566751694194690, guid: 7f11fe28133f1a74594785107b98f2fe,
|
||||
type: 3}
|
||||
m_Shader: {fileID: 4800000, guid: 7670cb236f939514c8e60951ece28b86, type: 3}
|
||||
m_Parent: {fileID: 0}
|
||||
m_ModifiedSerializedProperties: 0
|
||||
m_ValidKeywords:
|
||||
- _SURFACE_TYPE_TRANSPARENT
|
||||
m_InvalidKeywords: []
|
||||
m_InvalidKeywords:
|
||||
- _FLIPBOOKBLENDING_OFF
|
||||
m_LightmapFlags: 4
|
||||
m_EnableInstancingVariants: 0
|
||||
m_DoubleSidedGI: 0
|
||||
@@ -79,10 +79,22 @@ Material:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BaseMap:
|
||||
m_Texture: {fileID: 2800000, guid: 06bd874052404b41b58c12d3544de5ee, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _BumpMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _DetailNoise:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _EmissionMap:
|
||||
m_Texture: {fileID: 0}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Offset: {x: 0, y: 0}
|
||||
- _MainTex:
|
||||
m_Texture: {fileID: 2800000, guid: 06bd874052404b41b58c12d3544de5ee, type: 3}
|
||||
m_Scale: {x: 1, y: 1}
|
||||
@@ -127,33 +139,47 @@ Material:
|
||||
- _BUILTIN_ZWriteControl: 0
|
||||
- _Blend: 0
|
||||
- _BlendMode: 0
|
||||
- _BlendOp: 0
|
||||
- _CameraFadingEnabled: 0
|
||||
- _CameraFarFadeDistance: 2
|
||||
- _CameraNearFadeDistance: 1
|
||||
- _CastShadows: 0
|
||||
- _ColorMode: 0
|
||||
- _ConservativeDepthOffsetEnable: 0
|
||||
- _Cull: 2
|
||||
- _CullMode: 2
|
||||
- _CullModeForward: 2
|
||||
- _Culling: 0
|
||||
- _Cutoff: 0.5
|
||||
- _DISABLEEROSION: 0
|
||||
- _DepthOffsetEnable: 0
|
||||
- _Desaturate: 1
|
||||
- _DisableErosion: 0
|
||||
- _DistortionBlend: 0.5
|
||||
- _DistortionEnable: 0
|
||||
- _DistortionEnabled: 0
|
||||
- _DistortionIntensity: 0
|
||||
- _DistortionOnly: 0
|
||||
- _DistortionStrength: 1
|
||||
- _DistortionStrengthScaled: 0.1
|
||||
- _DoubleSidedEnable: 0
|
||||
- _DoubleSidedGIMode: 0
|
||||
- _DoubleSidedNormalMode: 2
|
||||
- _DstBlend: 10
|
||||
- _DstBlendAlpha: 10
|
||||
- _EnableBlendModePreserveSpecularLighting: 0
|
||||
- _EnableFogOnTransparent: 0
|
||||
- _ExcludeFromTUAndAA: 0
|
||||
- _FRESNEL: 0
|
||||
- _FlipbookBlending: 0
|
||||
- _FlipbookMode: 0
|
||||
- _Fresnel: 0
|
||||
- _FresnelPower: 1
|
||||
- _FresnelScale: 1
|
||||
- _Invert_Fresnel: 0
|
||||
- _MiddlePointPos: 0.6
|
||||
- _MiddlePointPos1: 0.5
|
||||
- _Mode: 0
|
||||
- _MultiplyNoiseDesaturation: 1
|
||||
- _OpaqueCullMode: 2
|
||||
- _QueueControl: 1
|
||||
@@ -163,8 +189,12 @@ Material:
|
||||
- _RenderQueueType: 4
|
||||
- _RequireSplitLighting: 0
|
||||
- _SoftFadeFactor: 0.1
|
||||
- _SoftParticlesEnabled: 0
|
||||
- _SoftParticlesFarFadeDistance: 1
|
||||
- _SoftParticlesNearFadeDistance: 0
|
||||
- _SourceBlendRGB: 10
|
||||
- _SrcBlend: 5
|
||||
- _SrcBlendAlpha: 1
|
||||
- _StencilRef: 0
|
||||
- _StencilRefDepth: 1
|
||||
- _StencilRefDistortionVec: 4
|
||||
@@ -206,6 +236,10 @@ Material:
|
||||
m_Colors:
|
||||
- _AlphaOverrideChannel: {r: 1, g: 0, b: 0, a: 0}
|
||||
- _AlphaOverridePanning: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _BaseColorAddSubDiff: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _DetailAdditiveChannel: {r: 0.4, g: 0, b: 0, a: 0}
|
||||
- _DetailDisolveChannel: {r: 1, g: 0, b: 0, a: 0}
|
||||
- _DetailDistortionChannel: {r: 0, g: 0, b: 0, a: 0}
|
||||
@@ -224,6 +258,7 @@ Material:
|
||||
- _MainTexturePanning: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _MidColor: {r: 0.8388745, g: 0.3607843, b: 0.8980392, a: 0}
|
||||
- _Resolution: {r: 64, g: 64, b: 0, a: 0}
|
||||
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _UnlitColorMap_MipInfo: {r: 0, g: 0, b: 0, a: 0}
|
||||
- _WhiteColor: {r: 1, g: 1, b: 1, a: 0}
|
||||
m_BuildTextureStacks: []
|
||||
|
||||
@@ -1167,7 +1167,7 @@ Transform:
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.3, y: 0.3, z: 0.3}
|
||||
m_LocalScale: {x: 0.2, y: 0.2, z: 0.2}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children:
|
||||
- {fileID: 6553391524536060664}
|
||||
@@ -2067,7 +2067,7 @@ Transform:
|
||||
m_GameObject: {fileID: 8652716887194496297}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
|
||||
m_LocalPosition: {x: 0, y: -3.9, z: 0}
|
||||
m_LocalPosition: {x: 0, y: -14, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children:
|
||||
|
||||
@@ -49015,8 +49015,8 @@ LineRenderer:
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_Positions:
|
||||
- {x: -0.023236096, y: 0.0651, z: 0.20598236}
|
||||
- {x: -0.5181, y: 0.0651, z: 0.1345}
|
||||
- {x: -0.024568051, y: 0.0651, z: 0.20974118}
|
||||
- {x: -0.272, y: 0.0651, z: 0.174}
|
||||
m_Parameters:
|
||||
serializedVersion: 3
|
||||
widthMultiplier: 0.7
|
||||
@@ -49076,89 +49076,6 @@ LineRenderer:
|
||||
m_UseWorldSpace: 1
|
||||
m_Loop: 0
|
||||
m_ApplyActiveColorSpace: 0
|
||||
--- !u!1 &5256596172703754658
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8594399118847906770}
|
||||
- component: {fileID: 8722444751930187187}
|
||||
- component: {fileID: 1143564099218833879}
|
||||
m_Layer: 0
|
||||
m_Name: Cube
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!4 &8594399118847906770
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5256596172703754658}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -0.085, y: 0.082, z: 0.265}
|
||||
m_LocalScale: {x: -0.11, y: -0.11, z: -0.11}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1228691179114836659}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!33 &8722444751930187187
|
||||
MeshFilter:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5256596172703754658}
|
||||
m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0}
|
||||
--- !u!23 &1143564099218833879
|
||||
MeshRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5256596172703754658}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 2
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 3
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_AdditionalVertexStreams: {fileID: 0}
|
||||
--- !u!1 &5744231550152300835
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -61233,8 +61150,8 @@ Transform:
|
||||
m_GameObject: {fileID: 7047730986678086390}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: -0, y: -0.99742866, z: -0, w: -0.07166664}
|
||||
m_LocalPosition: {x: -0.5181, y: 0.0651, z: 0.1345}
|
||||
m_LocalScale: {x: 0.1, y: 0.1, z: 0.1}
|
||||
m_LocalPosition: {x: -0.272, y: 0.0651, z: 0.174}
|
||||
m_LocalScale: {x: 0.05, y: 0.05, z: 0.05}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children:
|
||||
- {fileID: 3760315016672507011}
|
||||
@@ -80693,8 +80610,8 @@ LineRenderer:
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 1
|
||||
m_Positions:
|
||||
- {x: -0.023236096, y: 0.0651, z: 0.20598236}
|
||||
- {x: -0.5181, y: 0.0651, z: 0.1345}
|
||||
- {x: -0.024568051, y: 0.0651, z: 0.20974118}
|
||||
- {x: -0.272, y: 0.0651, z: 0.174}
|
||||
m_Parameters:
|
||||
serializedVersion: 3
|
||||
widthMultiplier: 0.5
|
||||
@@ -80874,7 +80791,6 @@ Transform:
|
||||
- {fileID: 4480223987781916997}
|
||||
- {fileID: 8031584695082446752}
|
||||
- {fileID: 7812651457924188614}
|
||||
- {fileID: 8594399118847906770}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &138521538557439807
|
||||
|
||||
@@ -571,6 +571,7 @@ MonoBehaviour:
|
||||
hitMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4168
|
||||
score: 0
|
||||
--- !u!1001 &3486794081135586198
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -594,6 +595,11 @@ PrefabInstance:
|
||||
propertyPath: looping
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4921598549523668054, guid: 3ce6cc08171cb014e8fa11cd824590a2,
|
||||
type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5167775749961452402, guid: 3ce6cc08171cb014e8fa11cd824590a2,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
@@ -1104,6 +1110,11 @@ PrefabInstance:
|
||||
propertyPath: m_PropertySheet.m_AnimationCurve.m_Array.Array.data[0].m_Value.m_Curve.Array.data[10].outSlope
|
||||
value: -29.120045
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5443062053484234594, guid: 3ce6cc08171cb014e8fa11cd824590a2,
|
||||
type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5556859291739986363, guid: 3ce6cc08171cb014e8fa11cd824590a2,
|
||||
type: 3}
|
||||
propertyPath: looping
|
||||
@@ -1119,11 +1130,26 @@ PrefabInstance:
|
||||
propertyPath: m_Bindings.Array.data[0]
|
||||
value:
|
||||
objectReference: {fileID: 8526648227528144747}
|
||||
- target: {fileID: 6538004474241553880, guid: 3ce6cc08171cb014e8fa11cd824590a2,
|
||||
type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6987603343668578781, guid: 3ce6cc08171cb014e8fa11cd824590a2,
|
||||
type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7986283558713326323, guid: 3ce6cc08171cb014e8fa11cd824590a2,
|
||||
type: 3}
|
||||
propertyPath: looping
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 9171123889460836985, guid: 3ce6cc08171cb014e8fa11cd824590a2,
|
||||
type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents:
|
||||
- {fileID: 8439731569274175905, guid: 3ce6cc08171cb014e8fa11cd824590a2, type: 3}
|
||||
m_RemovedGameObjects: []
|
||||
|
||||
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
@@ -93,6 +93,8 @@ public class GameLocal : MonoBehaviour
|
||||
|
||||
[NonSerialized]
|
||||
public GameObject DiKillUIeUI;
|
||||
|
||||
public int addPlayerIndex;
|
||||
|
||||
void Start()
|
||||
{
|
||||
|
||||
@@ -96,7 +96,7 @@ public class GameManager : NetworkBehaviour
|
||||
[SyncVar]
|
||||
public long vistRoundEnd = 0;
|
||||
// 总游玩时长
|
||||
private int vistAllTime = (int)(10*3f);
|
||||
private int vistAllTime = (int)(60*5f);
|
||||
[NonSerialized]
|
||||
[SyncVar]
|
||||
private int roundAllTime;
|
||||
@@ -163,9 +163,9 @@ public class GameManager : NetworkBehaviour
|
||||
NetworkServer.Spawn(blueDoor);
|
||||
|
||||
//创建开始球
|
||||
GameObject gameStartObj = Instantiate(startGameItemPre,startGamePos.position,Quaternion.identity);
|
||||
gameStartObj.transform.eulerAngles = new Vector3(0f,180f,0f);
|
||||
NetworkServer.Spawn(gameStartObj);
|
||||
// GameObject gameStartObj = Instantiate(startGameItemPre,startGamePos.position,Quaternion.identity);
|
||||
// gameStartObj.transform.eulerAngles = new Vector3(0f,180f,0f);
|
||||
// NetworkServer.Spawn(gameStartObj);
|
||||
|
||||
//测试枪械
|
||||
//GameLocal.Ins.self.GivePistol();
|
||||
@@ -259,8 +259,8 @@ public class GameManager : NetworkBehaviour
|
||||
}
|
||||
|
||||
// ★ 游戏开始时调用 → 自动分配队伍
|
||||
[Server]
|
||||
public void AutoAssignTeams()
|
||||
[Server]
|
||||
public void AutoAssignTeams()
|
||||
{
|
||||
int redCount = 0;
|
||||
int blueCount = 0;
|
||||
@@ -354,6 +354,28 @@ public void AutoAssignTeams()
|
||||
}
|
||||
}
|
||||
|
||||
[Server]
|
||||
public void CheckGameStart()
|
||||
{
|
||||
int curTeamIndex = 0;
|
||||
bool isStartGame=false;
|
||||
foreach (var player in allPlayers)
|
||||
{
|
||||
if (player.teamType != TeamType.None)
|
||||
curTeamIndex++;
|
||||
}
|
||||
|
||||
isStartGame=curTeamIndex >= GameLocal.Ins.addPlayerIndex;
|
||||
if (isStartGame)
|
||||
{
|
||||
if(gameState== GameState.Playing)
|
||||
return;
|
||||
Debug.Log("开始游戏");
|
||||
GameStart();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
[ClientRpc]
|
||||
public void RpcShowSettle()
|
||||
|
||||
@@ -275,6 +275,7 @@ public class Player : NetworkRoomPlayer,IDamagable
|
||||
Debug.Log("触碰开始");
|
||||
teamType = TeamType.Red;
|
||||
GameManager.Ins.GivePistol(index);
|
||||
GameManager.Ins.CheckGameStart();
|
||||
}
|
||||
|
||||
if (other.tag == "BlueDoor")
|
||||
@@ -282,6 +283,7 @@ public class Player : NetworkRoomPlayer,IDamagable
|
||||
Debug.Log("触碰开始");
|
||||
teamType = TeamType.Blue;
|
||||
GameManager.Ins.GivePistol(index);
|
||||
GameManager.Ins.CheckGameStart();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using XUI;
|
||||
|
||||
@@ -12,7 +13,11 @@ public class ConPanel : UIBehaviour
|
||||
public List<IPBtn> IPBtns;
|
||||
public bool IsInit = false;
|
||||
|
||||
|
||||
public TextMeshProUGUI lastTxt;
|
||||
public TextMeshProUGUI tenTxt;
|
||||
|
||||
private int lastIndex = 0;
|
||||
private int tenIndex = 0;
|
||||
public static void Show()
|
||||
{
|
||||
WorldUIManager.Ins.Cover("UI/ConPanel", false);
|
||||
@@ -27,6 +32,8 @@ public class ConPanel : UIBehaviour
|
||||
IPBtns.Add(btn);
|
||||
}
|
||||
IsInit = true;
|
||||
lastTxt.text = 0.ToString();
|
||||
tenTxt.text = 0.ToString();
|
||||
}
|
||||
|
||||
public void Update()
|
||||
@@ -39,6 +46,12 @@ public class ConPanel : UIBehaviour
|
||||
}
|
||||
|
||||
public void OnClickHost()
|
||||
{
|
||||
PanelState.StateChange(2);
|
||||
|
||||
}
|
||||
|
||||
public void CreateRoom()
|
||||
{
|
||||
WorldUIManager.Ins.Back();
|
||||
MRNetworkManager.Ins.CreateAndJoinRoom();
|
||||
@@ -71,4 +84,42 @@ public class ConPanel : UIBehaviour
|
||||
WorldUIManager.Ins.Back();
|
||||
MRNetworkManager.Ins.CreateRoom();
|
||||
}
|
||||
|
||||
public void AddLastPlayer()
|
||||
{
|
||||
lastIndex += 1;
|
||||
if(lastIndex>9)
|
||||
lastIndex = 0;
|
||||
lastTxt.text = lastIndex.ToString();
|
||||
}
|
||||
|
||||
public void CutLastPlayer()
|
||||
{
|
||||
lastIndex -= 1;
|
||||
if(lastIndex < 0)
|
||||
lastIndex = 9;
|
||||
lastTxt.text = lastIndex.ToString();
|
||||
}
|
||||
|
||||
public void AddTenPlayer()
|
||||
{
|
||||
tenIndex += 1;
|
||||
if(tenIndex>9)
|
||||
tenIndex = 0;
|
||||
tenTxt.text = tenIndex.ToString();
|
||||
}
|
||||
|
||||
public void CutTenPlayer()
|
||||
{
|
||||
tenIndex -= 1;
|
||||
if(tenIndex < 0)
|
||||
tenIndex = 9;
|
||||
tenTxt.text = tenIndex.ToString();
|
||||
}
|
||||
|
||||
public void OnCreateRoomClick()
|
||||
{
|
||||
GameLocal.Ins.addPlayerIndex = (tenIndex * 10) + lastIndex;
|
||||
CreateRoom();
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 374 KiB |
@@ -0,0 +1,127 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 25ccdced0da60a0488d4abed18108dd0
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 0
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/_Valheim/Resources/Texture/ConPanel/人数选择.png
Normal file
BIN
Assets/_Valheim/Resources/Texture/ConPanel/人数选择.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 144 KiB |
127
Assets/_Valheim/Resources/Texture/ConPanel/人数选择.png.meta
Normal file
127
Assets/_Valheim/Resources/Texture/ConPanel/人数选择.png.meta
Normal file
@@ -0,0 +1,127 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9081c72a9737fec45b93edc4ab9ac195
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 0
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -142,9 +142,7 @@ PlayerSettings:
|
||||
visionOSBundleVersion: 1.0
|
||||
tvOSBundleVersion: 1.0
|
||||
bundleVersion: 1.0.0
|
||||
preloadedAssets:
|
||||
- {fileID: 1814176829808956018, guid: 58f40b12bbc864f3c96c6505a9a1e1e3, type: 2}
|
||||
- {fileID: 11400000, guid: d0f8149c48842b4488cf6fb974cff9a2, type: 2}
|
||||
preloadedAssets: []
|
||||
metroInputSource: 0
|
||||
wsaTransparentSwapchain: 0
|
||||
m_HolographicPauseOnTrackingLoss: 1
|
||||
|
||||
Reference in New Issue
Block a user