编辑器模式下开启debug
关闭了拖拽虚影
增加了拖拽脚本(空的)
3 files added
4 files modified
| | |
| | | Application.platform == RuntimePlatform.WindowsPlayer) |
| | | { |
| | | GameConfig.useSDK = false; |
| | | GameConfig.OpenDebug = true; |
| | | |
| | | } |
| | | Application.targetFrameRate = 60; |
| | | //Debug.Log("设置了帧数为60"); |
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: 1c2c100c003a9f746acdba54d406d399 |
| | | folderAsset: yes |
| | | DefaultImporter: |
| | | externalObjects: {} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
New file |
| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | |
| | | public class EndlessDragCtrl : MonoBehaviour |
| | | { |
| | | // Start is called before the first frame update |
| | | void Start() |
| | | { |
| | | |
| | | } |
| | | |
| | | // Update is called once per frame |
| | | void Update() |
| | | { |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: ba8e5e61f7ecc7f498a2996d871db4cd |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | Application.platform == RuntimePlatform.WindowsPlayer) |
| | | { |
| | | GameConfig.useSDK = false; |
| | | GameConfig.OpenDebug = true; |
| | | GMBtn.SetActive(true); |
| | | } |
| | | else |
| | |
| | | { |
| | | return; |
| | | } |
| | | if (state == State.GameOver) |
| | | { |
| | | CommonDebugHelper.DebugError("已经游戏结束了,为什么还在修改状态"); |
| | | return; |
| | | } |
| | | CommonDebugHelper.Debug($"设置了状态 state:{state} newState:{newState} "); |
| | | |
| | | State oldState = state; |
| | | if (oldState == State.Paused || oldState == State.GameOver) |
| | | { |
| | |
| | | /// </summary> |
| | | public void GameOver() |
| | | { |
| | | CommonDebugHelper.Debug("游戏结束了"); |
| | | |
| | | SetState(State.GameOver); |
| | | } |
| | | |
| | |
| | | |
| | | if (isOn && towerName != "") |
| | | { |
| | | SetTowerVirtualshadow(towerName); |
| | | //SetTowerVirtualshadow(towerName); |
| | | EndlessWaveLineManager.instance.SetWaveLineShow(GridPosition.x, true); |
| | | } |
| | | else if (!isOn && towerVSRenderer.enabled) |
| | | else if (!isOn) |
| | | { |
| | | towerVSRenderer.enabled = false; |
| | | EndlessWaveLineManager.instance.SetWaveLineShow(GridPosition.x, false); |