1
This commit is contained in:
parent
ea2812815e
commit
01d4a888e3
@ -70,7 +70,7 @@ Material:
|
||||
- _OutlineSoftness: 0
|
||||
- _OutlineUVSpeedX: 0
|
||||
- _OutlineUVSpeedY: 0
|
||||
- _OutlineWidth: 0
|
||||
- _OutlineWidth: 0.033
|
||||
- _PerspectiveFilter: 0.875
|
||||
- _Reflectivity: 10
|
||||
- _ScaleRatioA: 0.8333333
|
||||
@ -120,9 +120,9 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 71c1514a6bd24e1e882cebbe1904ce04, type: 3}
|
||||
m_Name: SourceHanSansCN-Bold Cn SDF 1
|
||||
m_EditorClassIdentifier:
|
||||
hashCode: -164772756
|
||||
hashCode: 951094141
|
||||
material: {fileID: -4149713549750991327}
|
||||
materialHashCode: 670211660
|
||||
materialHashCode: -1737846339
|
||||
m_Version: 1.1.0
|
||||
m_SourceFontFileGUID: f8cafd7c799783241bc6430e405df799
|
||||
m_SourceFontFile_EditorRef: {fileID: 12800000, guid: f8cafd7c799783241bc6430e405df799, type: 3}
|
||||
|
@ -37297,7 +37297,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!224 &1950349943801813264
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -67,9 +67,8 @@ namespace GameLogic
|
||||
|
||||
//var number = protCustMessageData.content.Where(c => char.IsDigit(c)).ToArray();
|
||||
var number = protCustMessageData.content.Substring(2);
|
||||
Log.Debug(number);
|
||||
|
||||
if (number.Length == 0)
|
||||
if (number.Length == 1)
|
||||
{
|
||||
// 检查是否输入姓氏
|
||||
foreach (var surname in DataGameSceneManager.Instance.m_Strs)
|
||||
@ -77,9 +76,10 @@ namespace GameLogic
|
||||
if (protCustMessageData.content.Contains(surname))
|
||||
{
|
||||
int index = DataGameSceneManager.Instance.m_Strs.IndexOf(surname);
|
||||
var actor = DataGameSceneManager.Instance.GetTeamActor(index.ToString());
|
||||
Log.Debug("玩家输入了姓氏: {0},索引: {1}", surname, index);
|
||||
data = DataGameSceneManager.Instance.CreateUnitPlayerData(protCustMessageData, index + 1);
|
||||
var actor = DataGameSceneManager.Instance.GetTeamActor((index + 1).ToString());
|
||||
//actor.AddUnitPlayer(data);
|
||||
data = DataGameSceneManager.Instance.CreateUnitPlayerData(protCustMessageData, index);
|
||||
actor.AddPlayer(data);
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user