浏览代码

cleaning up some empty methods

/main
David Woodruff 4 年前
当前提交
6866f803
共有 14 个文件被更改,包括 186 次插入75 次删除
  1. 14
      Assets/BossRoom/Scripts/Client/Game/Character/ClientCharacter.cs
  2. 5
      Assets/BossRoom/Scripts/Client/Game/State/ClientBossRoomState.cs
  3. 6
      Assets/BossRoom/Scripts/Client/Game/State/ClientCharSelectState.cs
  4. 6
      Assets/BossRoom/Scripts/Client/Game/State/ClientMainMenuState.cs
  5. 6
      Assets/BossRoom/Scripts/Client/UI/MainMenuUI.cs
  6. 6
      Assets/BossRoom/Scripts/Development/dgtest/GameManager.cs
  7. 6
      Assets/BossRoom/Scripts/Development/dgtest/MainMenuManager.cs
  8. 5
      Assets/BossRoom/Scripts/Development/dgtest/ProgramState.cs
  9. 5
      Assets/BossRoom/Scripts/Server/Game/State/ServerBossRoomState.cs
  10. 11
      Assets/BossRoom/Scripts/Shared/Game/State/CharSelectData.cs
  11. 6
      Assets/BossRoom/Scripts/Shared/Game/State/GameStateBehaviour.cs
  12. 3
      ProjectSettings/ProjectSettings.asset
  13. 167
      ProjectSettings/SceneTemplateSettings.json
  14. 15
      ProjectSettings/TimelineSettings.asset

14
Assets/BossRoom/Scripts/Client/Game/Character/ClientCharacter.cs


[RequireComponent(typeof(BossRoom.NetworkCharacterState))]
public class ClientCharacter : MLAPI.NetworkedBehaviour
{
//!!STUB. Client Character gamelogic will go here.
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
}

5
Assets/BossRoom/Scripts/Client/Game/State/ClientBossRoomState.cs


if( !IsClient ) { this.enabled = false; }
}
// Update is called once per frame
void Update()
{
}
}
}

6
Assets/BossRoom/Scripts/Client/Game/State/ClientCharSelectState.cs


base.NetworkStart();
if (!IsClient) { this.enabled = false; }
}
// Update is called once per frame
void Update()
{
}
}
}

6
Assets/BossRoom/Scripts/Client/Game/State/ClientMainMenuState.cs


//note: this code won't ever run, because there is no network connection at the main menu screen.
//fortunately we know you are a client, because all players are clients when sitting at the main menu screen.
}
// Update is called once per frame
void Update()
{
}
}
}

6
Assets/BossRoom/Scripts/Client/UI/MainMenuUI.cs


m_netHub = GameHubGO.GetComponent<BossRoom.GameNetHub>();
}
// Update is called once per frame
void Update()
{
}
/// <summary>
/// Gets the IP Address the user set in the UI, or returns 127.0.0.1 if IP is not present.
/// </summary>

6
Assets/BossRoom/Scripts/Development/dgtest/GameManager.cs


main_player.transform.position = m_playerSpawn.transform.position;
main_player.GetComponent<NetworkedObject>().Spawn();
}
// Update is called once per frame
void Update()
{
}
}

6
Assets/BossRoom/Scripts/Development/dgtest/MainMenuManager.cs


Application.targetFrameRate = 60;
}
// Update is called once per frame
void Update()
{
}
public void OnHostButton()
{
m_netManager.StartServer();

5
Assets/BossRoom/Scripts/Development/dgtest/ProgramState.cs


m_netManager = GameObject.Find("NetworkHost").GetComponent<NetworkingManager>();
}
// Update is called once per frame
void Update()
{
}
}

5
Assets/BossRoom/Scripts/Server/Game/State/ServerBossRoomState.cs


}
}
// Update is called once per frame
void Update()
{
}
private void OnClientConnected(ulong clientId)
{
// FIXME: this is a work-around for an MLAPI timing problem which happens semi-reliably;

11
Assets/BossRoom/Scripts/Shared/Game/State/CharSelectData.cs


//They can probably just be strings for now.
private MLAPI.NetworkedVar.Collections.NetworkedList<string> CharSlots;
// Start is called before the first frame update
void Start()
{
}
public override void NetworkStart()
{
base.NetworkStart();

// Update is called once per frame
void Update()
{
}
}
}

6
Assets/BossRoom/Scripts/Shared/Game/State/GameStateBehaviour.cs


if( Persists ) { Object.DontDestroyOnLoad(this.gameObject); }
}
// Update is called once per frame
void Update()
{
}
private void OnDestroy()
{
if( !Persists )

3
ProjectSettings/ProjectSettings.asset


scriptingRuntimeVersion: 1
gcIncremental: 1
gcWBarrierValidation: 0
apiCompatibilityLevelPerPlatform: {}
apiCompatibilityLevelPerPlatform:
Standalone: 6
m_RenderingPath: 1
m_MobileRenderingPath: 1
metroPackageName: Template_3D

167
ProjectSettings/SceneTemplateSettings.json


{
"templatePinStates": [],
"dependencyTypeInfos": [
{
"userAdded": false,
"type": "UnityEngine.AnimationClip",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEditor.Animations.AnimatorController",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.AnimatorOverrideController",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEditor.Audio.AudioMixerController",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.ComputeShader",
"ignore": true,
"defaultInstantiationMode": 1,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Cubemap",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.GameObject",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEditor.LightingDataAsset",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": false
},
{
"userAdded": false,
"type": "UnityEngine.LightingSettings",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Material",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEditor.MonoScript",
"ignore": true,
"defaultInstantiationMode": 1,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.PhysicMaterial",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.PhysicsMaterial2D",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Rendering.PostProcessing.PostProcessProfile",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Rendering.PostProcessing.PostProcessResources",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Rendering.VolumeProfile",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEditor.SceneAsset",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": false
},
{
"userAdded": false,
"type": "UnityEngine.Shader",
"ignore": true,
"defaultInstantiationMode": 1,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.ShaderVariantCollection",
"ignore": true,
"defaultInstantiationMode": 1,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Texture",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Texture2D",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
},
{
"userAdded": false,
"type": "UnityEngine.Timeline.TimelineAsset",
"ignore": false,
"defaultInstantiationMode": 0,
"supportsModification": true
}
],
"defaultDependencyTypeInfo": {
"userAdded": false,
"type": "<default_scene_template_dependencies>",
"ignore": false,
"defaultInstantiationMode": 1,
"supportsModification": true
},
"newSceneOverride": 0
}

15
ProjectSettings/TimelineSettings.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &1
MonoBehaviour:
m_ObjectHideFlags: 61
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a287be6c49135cd4f9b2b8666c39d999, type: 3}
m_Name:
m_EditorClassIdentifier:
assetDefaultFramerate: 60
正在加载...
取消
保存