删删减减——wlx
This commit is contained in:
parent
4ac4f98be3
commit
c6543d075f
@ -1,10 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 69e720cef37576a47a6287bcd02d6d72
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1537231161
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,158 +0,0 @@
|
|||||||
// Felix-Bang:MapEditor
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:地图编辑器
|
|
||||||
// Createtime:2018/9/25
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using UnityEditor;
|
|
||||||
using FBApplication;
|
|
||||||
using System.IO;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace FBEditor
|
|
||||||
{
|
|
||||||
[CustomEditor(typeof(FBMap))]
|
|
||||||
public class MapEditor : Editor
|
|
||||||
{
|
|
||||||
[HideInInspector]
|
|
||||||
public FBMap Map=null;
|
|
||||||
/// <summary> 关卡列表 </summary>
|
|
||||||
List<FileInfo> f_files = new List<FileInfo>();
|
|
||||||
/// <summary> 当前编辑的关卡索引号 </summary>
|
|
||||||
int f_selectInfoIndex = -1;
|
|
||||||
|
|
||||||
public override void OnInspectorGUI()
|
|
||||||
{
|
|
||||||
base.OnInspectorGUI();
|
|
||||||
|
|
||||||
if (Application.isPlaying)
|
|
||||||
{
|
|
||||||
// 关联目标 为Map赋值
|
|
||||||
Map = target as FBMap;
|
|
||||||
|
|
||||||
// 第一行按钮
|
|
||||||
EditorGUILayout.BeginHorizontal();
|
|
||||||
//LoadLevelFiles();
|
|
||||||
int currentIndex = EditorGUILayout.Popup(f_selectInfoIndex, GetNames(f_files));
|
|
||||||
if (currentIndex != f_selectInfoIndex)
|
|
||||||
{
|
|
||||||
f_selectInfoIndex = currentIndex;
|
|
||||||
//加载关卡
|
|
||||||
LoadLevel();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (GUILayout.Button("读取列表"))
|
|
||||||
{
|
|
||||||
LoadLevelFiles();
|
|
||||||
}
|
|
||||||
EditorGUILayout.EndHorizontal();
|
|
||||||
|
|
||||||
// 第二行按钮
|
|
||||||
EditorGUILayout.BeginHorizontal();
|
|
||||||
if (GUILayout.Button("清空塔点"))
|
|
||||||
Map.ClearHolder();
|
|
||||||
|
|
||||||
if (GUILayout.Button("清空路径"))
|
|
||||||
Map.ClearRoad();
|
|
||||||
EditorGUILayout.EndHorizontal();
|
|
||||||
|
|
||||||
// 第三行按钮
|
|
||||||
EditorGUILayout.BeginHorizontal();
|
|
||||||
if (GUILayout.Button("保存数据"))
|
|
||||||
SaveLevel();
|
|
||||||
EditorGUILayout.EndHorizontal();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (GUI.changed)
|
|
||||||
EditorUtility.SetDirty(target);
|
|
||||||
}
|
|
||||||
|
|
||||||
private string[] GetNames(List<FileInfo> files)
|
|
||||||
{
|
|
||||||
List<string> names = new List<string>();
|
|
||||||
foreach (FileInfo file in files)
|
|
||||||
names.Add(file.Name);
|
|
||||||
|
|
||||||
return names.ToArray();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void LoadLevel()
|
|
||||||
{
|
|
||||||
FileInfo file = f_files[f_selectInfoIndex];
|
|
||||||
FBLevel level = new FBLevel();
|
|
||||||
FBTools.FillLevel(file.FullName, ref level);
|
|
||||||
Map.LoadLevel(level);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void LoadLevelFiles()
|
|
||||||
{
|
|
||||||
Clear();
|
|
||||||
f_files = FBTools.GetLevelFiles();
|
|
||||||
if (f_files.Count > 0)
|
|
||||||
{
|
|
||||||
f_selectInfoIndex = 0;
|
|
||||||
LoadLevel();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void SaveLevel()
|
|
||||||
{
|
|
||||||
//获取当前加载的关卡
|
|
||||||
FBLevel level = Map.Level;
|
|
||||||
|
|
||||||
//临时索引点
|
|
||||||
List<FBCoords> list = null;
|
|
||||||
|
|
||||||
//收集塔点
|
|
||||||
list = new List<FBCoords>();
|
|
||||||
for (int i = 0; i < Map.Grids.Count; i++)
|
|
||||||
{
|
|
||||||
FBGrid g = Map.Grids[i];
|
|
||||||
if (g.CanHold)
|
|
||||||
{
|
|
||||||
FBCoords c = new FBCoords(g.Index_X,g.Index_Y);
|
|
||||||
list.Add(c);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
level.Holders = list;
|
|
||||||
|
|
||||||
//收集寻路点
|
|
||||||
list = new List<FBCoords>();
|
|
||||||
for (int i = 0; i < Map.Road.Count; i++)
|
|
||||||
{
|
|
||||||
FBGrid g = Map.Road[i];
|
|
||||||
FBCoords c = new FBCoords(g.Index_X, g.Index_Y);
|
|
||||||
list.Add(c);
|
|
||||||
}
|
|
||||||
level.Path = list;
|
|
||||||
|
|
||||||
//保存
|
|
||||||
string fileName = f_files[f_selectInfoIndex].FullName;
|
|
||||||
FBTools.SaveLevel(fileName,level);
|
|
||||||
//弹框
|
|
||||||
EditorUtility.DisplayDialog("保存关卡数据","保存成功","确定");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Clear()
|
|
||||||
{
|
|
||||||
f_files.Clear();
|
|
||||||
f_selectInfoIndex = -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 98eac9022a5da0741adaafeda7234330
|
|
||||||
timeCreated: 1537839726
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,10 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 6413b566d57ae044ea08b733988a4172
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1537231151
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,196 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!29 &1
|
|
||||||
OcclusionCullingSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_OcclusionBakeSettings:
|
|
||||||
smallestOccluder: 5
|
|
||||||
smallestHole: 0.25
|
|
||||||
backfaceThreshold: 100
|
|
||||||
m_SceneGUID: 00000000000000000000000000000000
|
|
||||||
m_OcclusionCullingData: {fileID: 0}
|
|
||||||
--- !u!104 &2
|
|
||||||
RenderSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 9
|
|
||||||
m_Fog: 0
|
|
||||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
|
||||||
m_FogMode: 3
|
|
||||||
m_FogDensity: 0.01
|
|
||||||
m_LinearFogStart: 0
|
|
||||||
m_LinearFogEnd: 300
|
|
||||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
|
||||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
|
||||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
|
||||||
m_AmbientIntensity: 1
|
|
||||||
m_AmbientMode: 3
|
|
||||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
|
||||||
m_SkyboxMaterial: {fileID: 0}
|
|
||||||
m_HaloStrength: 0.5
|
|
||||||
m_FlareStrength: 1
|
|
||||||
m_FlareFadeSpeed: 3
|
|
||||||
m_HaloTexture: {fileID: 0}
|
|
||||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_DefaultReflectionMode: 0
|
|
||||||
m_DefaultReflectionResolution: 128
|
|
||||||
m_ReflectionBounces: 1
|
|
||||||
m_ReflectionIntensity: 1
|
|
||||||
m_CustomReflection: {fileID: 0}
|
|
||||||
m_Sun: {fileID: 0}
|
|
||||||
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
|
|
||||||
m_UseRadianceAmbientProbe: 0
|
|
||||||
--- !u!157 &3
|
|
||||||
LightmapSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 11
|
|
||||||
m_GIWorkflowMode: 1
|
|
||||||
m_GISettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_BounceScale: 1
|
|
||||||
m_IndirectOutputScale: 1
|
|
||||||
m_AlbedoBoost: 1
|
|
||||||
m_TemporalCoherenceThreshold: 1
|
|
||||||
m_EnvironmentLightingMode: 0
|
|
||||||
m_EnableBakedLightmaps: 0
|
|
||||||
m_EnableRealtimeLightmaps: 0
|
|
||||||
m_LightmapEditorSettings:
|
|
||||||
serializedVersion: 10
|
|
||||||
m_Resolution: 2
|
|
||||||
m_BakeResolution: 40
|
|
||||||
m_AtlasSize: 1024
|
|
||||||
m_AO: 0
|
|
||||||
m_AOMaxDistance: 1
|
|
||||||
m_CompAOExponent: 1
|
|
||||||
m_CompAOExponentDirect: 0
|
|
||||||
m_Padding: 2
|
|
||||||
m_LightmapParameters: {fileID: 0}
|
|
||||||
m_LightmapsBakeMode: 1
|
|
||||||
m_TextureCompression: 1
|
|
||||||
m_FinalGather: 0
|
|
||||||
m_FinalGatherFiltering: 1
|
|
||||||
m_FinalGatherRayCount: 256
|
|
||||||
m_ReflectionCompression: 2
|
|
||||||
m_MixedBakeMode: 2
|
|
||||||
m_BakeBackend: 0
|
|
||||||
m_PVRSampling: 1
|
|
||||||
m_PVRDirectSampleCount: 32
|
|
||||||
m_PVRSampleCount: 500
|
|
||||||
m_PVRBounces: 2
|
|
||||||
m_PVRFilterTypeDirect: 0
|
|
||||||
m_PVRFilterTypeIndirect: 0
|
|
||||||
m_PVRFilterTypeAO: 0
|
|
||||||
m_PVRFilteringMode: 1
|
|
||||||
m_PVRCulling: 1
|
|
||||||
m_PVRFilteringGaussRadiusDirect: 1
|
|
||||||
m_PVRFilteringGaussRadiusIndirect: 5
|
|
||||||
m_PVRFilteringGaussRadiusAO: 2
|
|
||||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
|
||||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
|
||||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
|
||||||
m_ShowResolutionOverlay: 1
|
|
||||||
m_LightingDataAsset: {fileID: 0}
|
|
||||||
m_UseShadowmask: 1
|
|
||||||
--- !u!196 &4
|
|
||||||
NavMeshSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_BuildSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
agentTypeID: 0
|
|
||||||
agentRadius: 0.5
|
|
||||||
agentHeight: 2
|
|
||||||
agentSlope: 45
|
|
||||||
agentClimb: 0.4
|
|
||||||
ledgeDropHeight: 0
|
|
||||||
maxJumpAcrossDistance: 0
|
|
||||||
minRegionArea: 2
|
|
||||||
manualCellSize: 0
|
|
||||||
cellSize: 0.16666667
|
|
||||||
manualTileSize: 0
|
|
||||||
tileSize: 256
|
|
||||||
accuratePlacement: 0
|
|
||||||
debug:
|
|
||||||
m_Flags: 0
|
|
||||||
m_NavMeshData: {fileID: 0}
|
|
||||||
--- !u!1 &836610721
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
serializedVersion: 6
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 836610722}
|
|
||||||
- component: {fileID: 836610726}
|
|
||||||
- component: {fileID: 836610725}
|
|
||||||
- component: {fileID: 836610724}
|
|
||||||
- component: {fileID: 836610723}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Game
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!4 &836610722
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 836610721}
|
|
||||||
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: 0}
|
|
||||||
m_RootOrder: 0
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!114 &836610723
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 836610721}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: da393da24ac351c47bbf369ea649ad9a, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
ObjectPool: {fileID: 0}
|
|
||||||
Sound: {fileID: 0}
|
|
||||||
StaticData: {fileID: 0}
|
|
||||||
--- !u!114 &836610724
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 836610721}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 487561bf879e4e341bf2280dc0451344, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
ResourceDir: Prefabs
|
|
||||||
--- !u!114 &836610725
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 836610721}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 82ad04c9c7c97d94a96ee7da13c2496f, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
ResourceDir: Sounds
|
|
||||||
--- !u!114 &836610726
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 836610721}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 2906467ad34ff394b92ce476caf49a37, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
@ -1,9 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 69ee0e78b41d9bf43832c135c9275b3b
|
|
||||||
timeCreated: 1537231621
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
File diff suppressed because it is too large
Load Diff
@ -1,9 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 587548c1dcb186241b5b102439cc435a
|
|
||||||
timeCreated: 1537231669
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
File diff suppressed because it is too large
Load Diff
@ -1,9 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 0205efa9c2c4a1d48979ea2c8e8f6cf5
|
|
||||||
timeCreated: 1537231697
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
File diff suppressed because it is too large
Load Diff
@ -1,9 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 76b32d6eae8c5d949b1ea7f1adf5e6eb
|
|
||||||
timeCreated: 1537231697
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,732 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!29 &1
|
|
||||||
OcclusionCullingSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_OcclusionBakeSettings:
|
|
||||||
smallestOccluder: 5
|
|
||||||
smallestHole: 0.25
|
|
||||||
backfaceThreshold: 100
|
|
||||||
m_SceneGUID: 00000000000000000000000000000000
|
|
||||||
m_OcclusionCullingData: {fileID: 0}
|
|
||||||
--- !u!104 &2
|
|
||||||
RenderSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 8
|
|
||||||
m_Fog: 0
|
|
||||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
|
||||||
m_FogMode: 3
|
|
||||||
m_FogDensity: 0.01
|
|
||||||
m_LinearFogStart: 0
|
|
||||||
m_LinearFogEnd: 300
|
|
||||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
|
||||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
|
||||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
|
||||||
m_AmbientIntensity: 1
|
|
||||||
m_AmbientMode: 3
|
|
||||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
|
||||||
m_SkyboxMaterial: {fileID: 0}
|
|
||||||
m_HaloStrength: 0.5
|
|
||||||
m_FlareStrength: 1
|
|
||||||
m_FlareFadeSpeed: 3
|
|
||||||
m_HaloTexture: {fileID: 0}
|
|
||||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_DefaultReflectionMode: 0
|
|
||||||
m_DefaultReflectionResolution: 128
|
|
||||||
m_ReflectionBounces: 1
|
|
||||||
m_ReflectionIntensity: 1
|
|
||||||
m_CustomReflection: {fileID: 0}
|
|
||||||
m_Sun: {fileID: 0}
|
|
||||||
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
|
|
||||||
--- !u!157 &3
|
|
||||||
LightmapSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 11
|
|
||||||
m_GIWorkflowMode: 1
|
|
||||||
m_GISettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_BounceScale: 1
|
|
||||||
m_IndirectOutputScale: 1
|
|
||||||
m_AlbedoBoost: 1
|
|
||||||
m_TemporalCoherenceThreshold: 1
|
|
||||||
m_EnvironmentLightingMode: 0
|
|
||||||
m_EnableBakedLightmaps: 0
|
|
||||||
m_EnableRealtimeLightmaps: 0
|
|
||||||
m_LightmapEditorSettings:
|
|
||||||
serializedVersion: 9
|
|
||||||
m_Resolution: 2
|
|
||||||
m_BakeResolution: 40
|
|
||||||
m_TextureWidth: 1024
|
|
||||||
m_TextureHeight: 1024
|
|
||||||
m_AO: 0
|
|
||||||
m_AOMaxDistance: 1
|
|
||||||
m_CompAOExponent: 1
|
|
||||||
m_CompAOExponentDirect: 0
|
|
||||||
m_Padding: 2
|
|
||||||
m_LightmapParameters: {fileID: 0}
|
|
||||||
m_LightmapsBakeMode: 1
|
|
||||||
m_TextureCompression: 1
|
|
||||||
m_FinalGather: 0
|
|
||||||
m_FinalGatherFiltering: 1
|
|
||||||
m_FinalGatherRayCount: 256
|
|
||||||
m_ReflectionCompression: 2
|
|
||||||
m_MixedBakeMode: 2
|
|
||||||
m_BakeBackend: 0
|
|
||||||
m_PVRSampling: 1
|
|
||||||
m_PVRDirectSampleCount: 32
|
|
||||||
m_PVRSampleCount: 500
|
|
||||||
m_PVRBounces: 2
|
|
||||||
m_PVRFilterTypeDirect: 0
|
|
||||||
m_PVRFilterTypeIndirect: 0
|
|
||||||
m_PVRFilterTypeAO: 0
|
|
||||||
m_PVRFilteringMode: 1
|
|
||||||
m_PVRCulling: 1
|
|
||||||
m_PVRFilteringGaussRadiusDirect: 1
|
|
||||||
m_PVRFilteringGaussRadiusIndirect: 5
|
|
||||||
m_PVRFilteringGaussRadiusAO: 2
|
|
||||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
|
||||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
|
||||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
|
||||||
m_ShowResolutionOverlay: 1
|
|
||||||
m_LightingDataAsset: {fileID: 0}
|
|
||||||
m_UseShadowmask: 1
|
|
||||||
--- !u!196 &4
|
|
||||||
NavMeshSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_BuildSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
agentTypeID: 0
|
|
||||||
agentRadius: 0.5
|
|
||||||
agentHeight: 2
|
|
||||||
agentSlope: 45
|
|
||||||
agentClimb: 0.4
|
|
||||||
ledgeDropHeight: 0
|
|
||||||
maxJumpAcrossDistance: 0
|
|
||||||
minRegionArea: 2
|
|
||||||
manualCellSize: 0
|
|
||||||
cellSize: 0.16666667
|
|
||||||
manualTileSize: 0
|
|
||||||
tileSize: 256
|
|
||||||
accuratePlacement: 0
|
|
||||||
debug:
|
|
||||||
m_Flags: 0
|
|
||||||
m_NavMeshData: {fileID: 0}
|
|
||||||
--- !u!1 &225228263
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
serializedVersion: 5
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 225228267}
|
|
||||||
- component: {fileID: 225228266}
|
|
||||||
- component: {fileID: 225228265}
|
|
||||||
- component: {fileID: 225228264}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Main Camera
|
|
||||||
m_TagString: MainCamera
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!81 &225228264
|
|
||||||
AudioListener:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 225228263}
|
|
||||||
m_Enabled: 1
|
|
||||||
--- !u!124 &225228265
|
|
||||||
Behaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 225228263}
|
|
||||||
m_Enabled: 1
|
|
||||||
--- !u!20 &225228266
|
|
||||||
Camera:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 225228263}
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 2
|
|
||||||
m_ClearFlags: 1
|
|
||||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
|
||||||
m_NormalizedViewPortRect:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 0
|
|
||||||
width: 1
|
|
||||||
height: 1
|
|
||||||
near clip plane: 0.3
|
|
||||||
far clip plane: 1000
|
|
||||||
field of view: 60
|
|
||||||
orthographic: 1
|
|
||||||
orthographic size: 5
|
|
||||||
m_Depth: -1
|
|
||||||
m_CullingMask:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 4294967295
|
|
||||||
m_RenderingPath: -1
|
|
||||||
m_TargetTexture: {fileID: 0}
|
|
||||||
m_TargetDisplay: 0
|
|
||||||
m_TargetEye: 3
|
|
||||||
m_HDR: 1
|
|
||||||
m_AllowMSAA: 1
|
|
||||||
m_AllowDynamicResolution: 0
|
|
||||||
m_ForceIntoRT: 0
|
|
||||||
m_OcclusionCulling: 1
|
|
||||||
m_StereoConvergence: 10
|
|
||||||
m_StereoSeparation: 0.022
|
|
||||||
--- !u!4 &225228267
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 225228263}
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_RootOrder: 0
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!1 &1302775841
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
serializedVersion: 5
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1302775842}
|
|
||||||
- component: {fileID: 1302775845}
|
|
||||||
- component: {fileID: 1302775844}
|
|
||||||
- component: {fileID: 1302775843}
|
|
||||||
m_Layer: 5
|
|
||||||
m_Name: Btn_Restart
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!224 &1302775842
|
|
||||||
RectTransform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1302775841}
|
|
||||||
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: 1577237480}
|
|
||||||
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: -284, y: 201}
|
|
||||||
m_SizeDelta: {x: 370.9, y: 113.1}
|
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
|
||||||
--- !u!114 &1302775843
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1302775841}
|
|
||||||
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: 2
|
|
||||||
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: 21300000, guid: f6fb1f04a4eb49049821b8f727176d1a, type: 3}
|
|
||||||
m_DisabledSprite: {fileID: 0}
|
|
||||||
m_AnimationTriggers:
|
|
||||||
m_NormalTrigger: Normal
|
|
||||||
m_HighlightedTrigger: Highlighted
|
|
||||||
m_PressedTrigger: Pressed
|
|
||||||
m_DisabledTrigger: Disabled
|
|
||||||
m_Interactable: 1
|
|
||||||
m_TargetGraphic: {fileID: 1302775844}
|
|
||||||
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 &1302775844
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1302775841}
|
|
||||||
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: 6e07af6fe96a7034c8e693bcfbc286a4, type: 3}
|
|
||||||
m_Type: 0
|
|
||||||
m_PreserveAspect: 0
|
|
||||||
m_FillCenter: 1
|
|
||||||
m_FillMethod: 4
|
|
||||||
m_FillAmount: 1
|
|
||||||
m_FillClockwise: 1
|
|
||||||
m_FillOrigin: 0
|
|
||||||
--- !u!222 &1302775845
|
|
||||||
CanvasRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1302775841}
|
|
||||||
--- !u!1 &1331176614
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
serializedVersion: 5
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1331176617}
|
|
||||||
- component: {fileID: 1331176616}
|
|
||||||
- component: {fileID: 1331176615}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: EventSystem
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!114 &1331176615
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1331176614}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_HorizontalAxis: Horizontal
|
|
||||||
m_VerticalAxis: Vertical
|
|
||||||
m_SubmitButton: Submit
|
|
||||||
m_CancelButton: Cancel
|
|
||||||
m_InputActionsPerSecond: 10
|
|
||||||
m_RepeatDelay: 0.5
|
|
||||||
m_ForceModuleActive: 0
|
|
||||||
--- !u!114 &1331176616
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1331176614}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_FirstSelected: {fileID: 0}
|
|
||||||
m_sendNavigationEvents: 1
|
|
||||||
m_DragThreshold: 5
|
|
||||||
--- !u!4 &1331176617
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1331176614}
|
|
||||||
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: 0}
|
|
||||||
m_RootOrder: 2
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!1 &1543302558
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
serializedVersion: 5
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1543302559}
|
|
||||||
- component: {fileID: 1543302562}
|
|
||||||
- component: {fileID: 1543302561}
|
|
||||||
- component: {fileID: 1543302560}
|
|
||||||
m_Layer: 5
|
|
||||||
m_Name: Btn_Clear
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!224 &1543302559
|
|
||||||
RectTransform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1543302558}
|
|
||||||
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: 1662175530}
|
|
||||||
m_Father: {fileID: 1577237480}
|
|
||||||
m_RootOrder: 1
|
|
||||||
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: 284.0001, y: 201.00002}
|
|
||||||
m_SizeDelta: {x: 370.9, y: 113.1}
|
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
|
||||||
--- !u!114 &1543302560
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1543302558}
|
|
||||||
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: 2
|
|
||||||
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: 21300000, guid: f6fb1f04a4eb49049821b8f727176d1a, type: 3}
|
|
||||||
m_DisabledSprite: {fileID: 21300000, guid: ddcab36ec3c92fd4a97c1f8ba2c25610, type: 3}
|
|
||||||
m_AnimationTriggers:
|
|
||||||
m_NormalTrigger: Normal
|
|
||||||
m_HighlightedTrigger: Highlighted
|
|
||||||
m_PressedTrigger: Pressed
|
|
||||||
m_DisabledTrigger: Disabled
|
|
||||||
m_Interactable: 1
|
|
||||||
m_TargetGraphic: {fileID: 1543302561}
|
|
||||||
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 &1543302561
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1543302558}
|
|
||||||
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: 4da699e8f09c7a34cbca7b9144e72da8, type: 3}
|
|
||||||
m_Type: 0
|
|
||||||
m_PreserveAspect: 0
|
|
||||||
m_FillCenter: 1
|
|
||||||
m_FillMethod: 4
|
|
||||||
m_FillAmount: 1
|
|
||||||
m_FillClockwise: 1
|
|
||||||
m_FillOrigin: 0
|
|
||||||
--- !u!222 &1543302562
|
|
||||||
CanvasRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1543302558}
|
|
||||||
--- !u!1 &1577237479
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
serializedVersion: 5
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1577237480}
|
|
||||||
- component: {fileID: 1577237482}
|
|
||||||
- component: {fileID: 1577237481}
|
|
||||||
m_Layer: 5
|
|
||||||
m_Name: Background
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!224 &1577237480
|
|
||||||
RectTransform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1577237479}
|
|
||||||
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: 1302775842}
|
|
||||||
- {fileID: 1543302559}
|
|
||||||
m_Father: {fileID: 1868430541}
|
|
||||||
m_RootOrder: 0
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
|
||||||
m_AnchorMax: {x: 1, y: 1}
|
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
|
||||||
--- !u!114 &1577237481
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1577237479}
|
|
||||||
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: 88a8a2621573f06429618f7039054f51, type: 3}
|
|
||||||
m_Type: 0
|
|
||||||
m_PreserveAspect: 0
|
|
||||||
m_FillCenter: 1
|
|
||||||
m_FillMethod: 4
|
|
||||||
m_FillAmount: 1
|
|
||||||
m_FillClockwise: 1
|
|
||||||
m_FillOrigin: 0
|
|
||||||
--- !u!222 &1577237482
|
|
||||||
CanvasRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1577237479}
|
|
||||||
--- !u!1 &1662175529
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
serializedVersion: 5
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1662175530}
|
|
||||||
- component: {fileID: 1662175532}
|
|
||||||
- component: {fileID: 1662175531}
|
|
||||||
m_Layer: 5
|
|
||||||
m_Name: Text
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!224 &1662175530
|
|
||||||
RectTransform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1662175529}
|
|
||||||
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: 1543302559}
|
|
||||||
m_RootOrder: 0
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
|
||||||
m_AnchorMax: {x: 1, y: 1}
|
|
||||||
m_AnchoredPosition: {x: 8.9, y: 12.2}
|
|
||||||
m_SizeDelta: {x: -137.1, y: -42}
|
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
|
||||||
--- !u!114 &1662175531
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1662175529}
|
|
||||||
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: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_FontSize: 40
|
|
||||||
m_FontStyle: 0
|
|
||||||
m_BestFit: 0
|
|
||||||
m_MinSize: 4
|
|
||||||
m_MaxSize: 60
|
|
||||||
m_Alignment: 4
|
|
||||||
m_AlignByGeometry: 0
|
|
||||||
m_RichText: 1
|
|
||||||
m_HorizontalOverflow: 0
|
|
||||||
m_VerticalOverflow: 0
|
|
||||||
m_LineSpacing: 1
|
|
||||||
m_Text: "\u6E05\u6863"
|
|
||||||
--- !u!222 &1662175532
|
|
||||||
CanvasRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1662175529}
|
|
||||||
--- !u!1 &1868430537
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
serializedVersion: 5
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1868430541}
|
|
||||||
- component: {fileID: 1868430540}
|
|
||||||
- component: {fileID: 1868430539}
|
|
||||||
- component: {fileID: 1868430538}
|
|
||||||
- component: {fileID: 1868430542}
|
|
||||||
m_Layer: 5
|
|
||||||
m_Name: UIComplete
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!114 &1868430538
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1868430537}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_IgnoreReversedGraphics: 1
|
|
||||||
m_BlockingObjects: 0
|
|
||||||
m_BlockingMask:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 4294967295
|
|
||||||
--- !u!114 &1868430539
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1868430537}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_UiScaleMode: 1
|
|
||||||
m_ReferencePixelsPerUnit: 100
|
|
||||||
m_ScaleFactor: 1
|
|
||||||
m_ReferenceResolution: {x: 1920, y: 1080}
|
|
||||||
m_ScreenMatchMode: 0
|
|
||||||
m_MatchWidthOrHeight: 0
|
|
||||||
m_PhysicalUnit: 3
|
|
||||||
m_FallbackScreenDPI: 96
|
|
||||||
m_DefaultSpriteDPI: 96
|
|
||||||
m_DynamicPixelsPerUnit: 1
|
|
||||||
--- !u!223 &1868430540
|
|
||||||
Canvas:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1868430537}
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 3
|
|
||||||
m_RenderMode: 0
|
|
||||||
m_Camera: {fileID: 0}
|
|
||||||
m_PlaneDistance: 100
|
|
||||||
m_PixelPerfect: 0
|
|
||||||
m_ReceivesEvents: 1
|
|
||||||
m_OverrideSorting: 0
|
|
||||||
m_OverridePixelPerfect: 0
|
|
||||||
m_SortingBucketNormalizedSize: 0
|
|
||||||
m_AdditionalShaderChannelsFlag: 0
|
|
||||||
m_SortingLayerID: 0
|
|
||||||
m_SortingOrder: 0
|
|
||||||
m_TargetDisplay: 0
|
|
||||||
--- !u!224 &1868430541
|
|
||||||
RectTransform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1868430537}
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
||||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
|
||||||
m_Children:
|
|
||||||
- {fileID: 1577237480}
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_RootOrder: 1
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
|
||||||
m_AnchorMax: {x: 0, y: 0}
|
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
|
||||||
m_Pivot: {x: 0, y: 0}
|
|
||||||
--- !u!114 &1868430542
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1868430537}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 653de9a746bd55042b3a3111fdf7afbd, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
EventLists: []
|
|
||||||
btnRestart: {fileID: 1302775843}
|
|
||||||
btnClear: {fileID: 1543302560}
|
|
@ -1,9 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 8f9b8a50b46a8634388786b5443d8bbd
|
|
||||||
timeCreated: 1537231697
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,462 +0,0 @@
|
|||||||
%YAML 1.1
|
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
|
||||||
--- !u!29 &1
|
|
||||||
OcclusionCullingSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_OcclusionBakeSettings:
|
|
||||||
smallestOccluder: 5
|
|
||||||
smallestHole: 0.25
|
|
||||||
backfaceThreshold: 100
|
|
||||||
m_SceneGUID: 00000000000000000000000000000000
|
|
||||||
m_OcclusionCullingData: {fileID: 0}
|
|
||||||
--- !u!104 &2
|
|
||||||
RenderSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 8
|
|
||||||
m_Fog: 0
|
|
||||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
|
||||||
m_FogMode: 3
|
|
||||||
m_FogDensity: 0.01
|
|
||||||
m_LinearFogStart: 0
|
|
||||||
m_LinearFogEnd: 300
|
|
||||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
|
||||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
|
||||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
|
||||||
m_AmbientIntensity: 1
|
|
||||||
m_AmbientMode: 3
|
|
||||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
|
||||||
m_SkyboxMaterial: {fileID: 0}
|
|
||||||
m_HaloStrength: 0.5
|
|
||||||
m_FlareStrength: 1
|
|
||||||
m_FlareFadeSpeed: 3
|
|
||||||
m_HaloTexture: {fileID: 0}
|
|
||||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
|
||||||
m_DefaultReflectionMode: 0
|
|
||||||
m_DefaultReflectionResolution: 128
|
|
||||||
m_ReflectionBounces: 1
|
|
||||||
m_ReflectionIntensity: 1
|
|
||||||
m_CustomReflection: {fileID: 0}
|
|
||||||
m_Sun: {fileID: 0}
|
|
||||||
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
|
|
||||||
--- !u!157 &3
|
|
||||||
LightmapSettings:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 11
|
|
||||||
m_GIWorkflowMode: 1
|
|
||||||
m_GISettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_BounceScale: 1
|
|
||||||
m_IndirectOutputScale: 1
|
|
||||||
m_AlbedoBoost: 1
|
|
||||||
m_TemporalCoherenceThreshold: 1
|
|
||||||
m_EnvironmentLightingMode: 0
|
|
||||||
m_EnableBakedLightmaps: 0
|
|
||||||
m_EnableRealtimeLightmaps: 0
|
|
||||||
m_LightmapEditorSettings:
|
|
||||||
serializedVersion: 9
|
|
||||||
m_Resolution: 2
|
|
||||||
m_BakeResolution: 40
|
|
||||||
m_TextureWidth: 1024
|
|
||||||
m_TextureHeight: 1024
|
|
||||||
m_AO: 0
|
|
||||||
m_AOMaxDistance: 1
|
|
||||||
m_CompAOExponent: 1
|
|
||||||
m_CompAOExponentDirect: 0
|
|
||||||
m_Padding: 2
|
|
||||||
m_LightmapParameters: {fileID: 0}
|
|
||||||
m_LightmapsBakeMode: 1
|
|
||||||
m_TextureCompression: 1
|
|
||||||
m_FinalGather: 0
|
|
||||||
m_FinalGatherFiltering: 1
|
|
||||||
m_FinalGatherRayCount: 256
|
|
||||||
m_ReflectionCompression: 2
|
|
||||||
m_MixedBakeMode: 2
|
|
||||||
m_BakeBackend: 0
|
|
||||||
m_PVRSampling: 1
|
|
||||||
m_PVRDirectSampleCount: 32
|
|
||||||
m_PVRSampleCount: 500
|
|
||||||
m_PVRBounces: 2
|
|
||||||
m_PVRFilterTypeDirect: 0
|
|
||||||
m_PVRFilterTypeIndirect: 0
|
|
||||||
m_PVRFilterTypeAO: 0
|
|
||||||
m_PVRFilteringMode: 1
|
|
||||||
m_PVRCulling: 1
|
|
||||||
m_PVRFilteringGaussRadiusDirect: 1
|
|
||||||
m_PVRFilteringGaussRadiusIndirect: 5
|
|
||||||
m_PVRFilteringGaussRadiusAO: 2
|
|
||||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
|
||||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
|
||||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
|
||||||
m_ShowResolutionOverlay: 1
|
|
||||||
m_LightingDataAsset: {fileID: 0}
|
|
||||||
m_UseShadowmask: 1
|
|
||||||
--- !u!196 &4
|
|
||||||
NavMeshSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_BuildSettings:
|
|
||||||
serializedVersion: 2
|
|
||||||
agentTypeID: 0
|
|
||||||
agentRadius: 0.5
|
|
||||||
agentHeight: 2
|
|
||||||
agentSlope: 45
|
|
||||||
agentClimb: 0.4
|
|
||||||
ledgeDropHeight: 0
|
|
||||||
maxJumpAcrossDistance: 0
|
|
||||||
minRegionArea: 2
|
|
||||||
manualCellSize: 0
|
|
||||||
cellSize: 0.16666667
|
|
||||||
manualTileSize: 0
|
|
||||||
tileSize: 256
|
|
||||||
accuratePlacement: 0
|
|
||||||
debug:
|
|
||||||
m_Flags: 0
|
|
||||||
m_NavMeshData: {fileID: 0}
|
|
||||||
--- !u!1 &218356582
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
serializedVersion: 5
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 218356586}
|
|
||||||
- component: {fileID: 218356585}
|
|
||||||
- component: {fileID: 218356584}
|
|
||||||
- component: {fileID: 218356583}
|
|
||||||
m_Layer: 5
|
|
||||||
m_Name: Canvas
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!114 &218356583
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 218356582}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_IgnoreReversedGraphics: 1
|
|
||||||
m_BlockingObjects: 0
|
|
||||||
m_BlockingMask:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 4294967295
|
|
||||||
--- !u!114 &218356584
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 218356582}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_UiScaleMode: 1
|
|
||||||
m_ReferencePixelsPerUnit: 100
|
|
||||||
m_ScaleFactor: 1
|
|
||||||
m_ReferenceResolution: {x: 1920, y: 1080}
|
|
||||||
m_ScreenMatchMode: 0
|
|
||||||
m_MatchWidthOrHeight: 0
|
|
||||||
m_PhysicalUnit: 3
|
|
||||||
m_FallbackScreenDPI: 96
|
|
||||||
m_DefaultSpriteDPI: 96
|
|
||||||
m_DynamicPixelsPerUnit: 1
|
|
||||||
--- !u!223 &218356585
|
|
||||||
Canvas:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 218356582}
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 3
|
|
||||||
m_RenderMode: 0
|
|
||||||
m_Camera: {fileID: 0}
|
|
||||||
m_PlaneDistance: 100
|
|
||||||
m_PixelPerfect: 0
|
|
||||||
m_ReceivesEvents: 1
|
|
||||||
m_OverrideSorting: 0
|
|
||||||
m_OverridePixelPerfect: 0
|
|
||||||
m_SortingBucketNormalizedSize: 0
|
|
||||||
m_AdditionalShaderChannelsFlag: 0
|
|
||||||
m_SortingLayerID: 0
|
|
||||||
m_SortingOrder: 0
|
|
||||||
m_TargetDisplay: 0
|
|
||||||
--- !u!224 &218356586
|
|
||||||
RectTransform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 218356582}
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
||||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
|
||||||
m_Children:
|
|
||||||
- {fileID: 426292912}
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_RootOrder: 1
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
|
||||||
m_AnchorMax: {x: 0, y: 0}
|
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
|
||||||
m_SizeDelta: {x: 0, y: 0}
|
|
||||||
m_Pivot: {x: 0, y: 0}
|
|
||||||
--- !u!1 &225228263
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
serializedVersion: 5
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 225228267}
|
|
||||||
- component: {fileID: 225228266}
|
|
||||||
- component: {fileID: 225228265}
|
|
||||||
- component: {fileID: 225228264}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: Main Camera
|
|
||||||
m_TagString: MainCamera
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!81 &225228264
|
|
||||||
AudioListener:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 225228263}
|
|
||||||
m_Enabled: 1
|
|
||||||
--- !u!124 &225228265
|
|
||||||
Behaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 225228263}
|
|
||||||
m_Enabled: 1
|
|
||||||
--- !u!20 &225228266
|
|
||||||
Camera:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 225228263}
|
|
||||||
m_Enabled: 1
|
|
||||||
serializedVersion: 2
|
|
||||||
m_ClearFlags: 1
|
|
||||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
|
||||||
m_NormalizedViewPortRect:
|
|
||||||
serializedVersion: 2
|
|
||||||
x: 0
|
|
||||||
y: 0
|
|
||||||
width: 1
|
|
||||||
height: 1
|
|
||||||
near clip plane: 0.3
|
|
||||||
far clip plane: 1000
|
|
||||||
field of view: 60
|
|
||||||
orthographic: 1
|
|
||||||
orthographic size: 5
|
|
||||||
m_Depth: -1
|
|
||||||
m_CullingMask:
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Bits: 4294967295
|
|
||||||
m_RenderingPath: -1
|
|
||||||
m_TargetTexture: {fileID: 0}
|
|
||||||
m_TargetDisplay: 0
|
|
||||||
m_TargetEye: 3
|
|
||||||
m_HDR: 1
|
|
||||||
m_AllowMSAA: 1
|
|
||||||
m_AllowDynamicResolution: 0
|
|
||||||
m_ForceIntoRT: 0
|
|
||||||
m_OcclusionCulling: 1
|
|
||||||
m_StereoConvergence: 10
|
|
||||||
m_StereoSeparation: 0.022
|
|
||||||
--- !u!4 &225228267
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 225228263}
|
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
||||||
m_LocalPosition: {x: 0, y: 0, z: -10}
|
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
||||||
m_Children: []
|
|
||||||
m_Father: {fileID: 0}
|
|
||||||
m_RootOrder: 0
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!1 &426292911
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
serializedVersion: 5
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 426292912}
|
|
||||||
- component: {fileID: 426292914}
|
|
||||||
- component: {fileID: 426292913}
|
|
||||||
m_Layer: 5
|
|
||||||
m_Name: Board
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!224 &426292912
|
|
||||||
RectTransform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 426292911}
|
|
||||||
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: 218356586}
|
|
||||||
m_RootOrder: 0
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
m_AnchorMin: {x: 0.5, y: 1}
|
|
||||||
m_AnchorMax: {x: 0.5, y: 1}
|
|
||||||
m_AnchoredPosition: {x: 0, y: -39}
|
|
||||||
m_SizeDelta: {x: 926, y: 78}
|
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
|
||||||
--- !u!114 &426292913
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 426292911}
|
|
||||||
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: c06ce529ae3b01f488cb7c2c06ba6795, type: 3}
|
|
||||||
m_Type: 0
|
|
||||||
m_PreserveAspect: 0
|
|
||||||
m_FillCenter: 1
|
|
||||||
m_FillMethod: 4
|
|
||||||
m_FillAmount: 1
|
|
||||||
m_FillClockwise: 1
|
|
||||||
m_FillOrigin: 0
|
|
||||||
--- !u!222 &426292914
|
|
||||||
CanvasRenderer:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 426292911}
|
|
||||||
--- !u!1 &1658612129
|
|
||||||
GameObject:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
serializedVersion: 5
|
|
||||||
m_Component:
|
|
||||||
- component: {fileID: 1658612132}
|
|
||||||
- component: {fileID: 1658612131}
|
|
||||||
- component: {fileID: 1658612130}
|
|
||||||
m_Layer: 0
|
|
||||||
m_Name: EventSystem
|
|
||||||
m_TagString: Untagged
|
|
||||||
m_Icon: {fileID: 0}
|
|
||||||
m_NavMeshLayer: 0
|
|
||||||
m_StaticEditorFlags: 0
|
|
||||||
m_IsActive: 1
|
|
||||||
--- !u!114 &1658612130
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1658612129}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_HorizontalAxis: Horizontal
|
|
||||||
m_VerticalAxis: Vertical
|
|
||||||
m_SubmitButton: Submit
|
|
||||||
m_CancelButton: Cancel
|
|
||||||
m_InputActionsPerSecond: 10
|
|
||||||
m_RepeatDelay: 0.5
|
|
||||||
m_ForceModuleActive: 0
|
|
||||||
--- !u!114 &1658612131
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1658612129}
|
|
||||||
m_Enabled: 1
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
m_FirstSelected: {fileID: 0}
|
|
||||||
m_sendNavigationEvents: 1
|
|
||||||
m_DragThreshold: 5
|
|
||||||
--- !u!4 &1658612132
|
|
||||||
Transform:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_PrefabParentObject: {fileID: 0}
|
|
||||||
m_PrefabInternal: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 1658612129}
|
|
||||||
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: 0}
|
|
||||||
m_RootOrder: 2
|
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
||||||
--- !u!1001 &1766574518
|
|
||||||
Prefab:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
serializedVersion: 2
|
|
||||||
m_Modification:
|
|
||||||
m_TransformParent: {fileID: 0}
|
|
||||||
m_Modifications:
|
|
||||||
- target: {fileID: 4616181440247848, guid: 76ca9f65192902d41b937d2610833f6a, type: 2}
|
|
||||||
propertyPath: m_LocalPosition.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4616181440247848, guid: 76ca9f65192902d41b937d2610833f6a, type: 2}
|
|
||||||
propertyPath: m_LocalPosition.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4616181440247848, guid: 76ca9f65192902d41b937d2610833f6a, type: 2}
|
|
||||||
propertyPath: m_LocalPosition.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4616181440247848, guid: 76ca9f65192902d41b937d2610833f6a, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.x
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4616181440247848, guid: 76ca9f65192902d41b937d2610833f6a, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.y
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4616181440247848, guid: 76ca9f65192902d41b937d2610833f6a, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.z
|
|
||||||
value: 0
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4616181440247848, guid: 76ca9f65192902d41b937d2610833f6a, type: 2}
|
|
||||||
propertyPath: m_LocalRotation.w
|
|
||||||
value: 1
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
- target: {fileID: 4616181440247848, guid: 76ca9f65192902d41b937d2610833f6a, type: 2}
|
|
||||||
propertyPath: m_RootOrder
|
|
||||||
value: 3
|
|
||||||
objectReference: {fileID: 0}
|
|
||||||
m_RemovedComponents: []
|
|
||||||
m_ParentPrefab: {fileID: 100100000, guid: 76ca9f65192902d41b937d2610833f6a, type: 2}
|
|
||||||
m_IsPrefabParent: 0
|
|
@ -1,9 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 3a4f9a61e28513048ac7c436ffb92342
|
|
||||||
timeCreated: 1537231697
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,10 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 81685b3388f74834db0990022abc376d
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1537231348
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,10 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 8edd9faa13763c248b441f22c1fbfa9d
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1537231369
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,10 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: bbe7ab623248bfc42a046e521a4d521f
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1537231490
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,148 +0,0 @@
|
|||||||
// Felix-Bang:FBGameModel
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:游戏数据的读取/储存
|
|
||||||
// Createtime:2018/10/11
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
using System.IO;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBGameModel : FBModel
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
//所有关卡
|
|
||||||
List<FBLevel> f_levels = new List<FBLevel>();
|
|
||||||
//当前关卡索引
|
|
||||||
int f_playLevelIndex = -1;
|
|
||||||
//最大通关关卡索引
|
|
||||||
int f_gameProgressIndex = -1;
|
|
||||||
//游戏当前分数
|
|
||||||
int f_gold = 0;
|
|
||||||
//是否游戏中
|
|
||||||
bool f_isPlaying = false;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 属性
|
|
||||||
public override string Name
|
|
||||||
{
|
|
||||||
get { return FBConsts.M_GameModel; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<FBLevel> AllLevels
|
|
||||||
{
|
|
||||||
get { return f_levels; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public int LevelCount
|
|
||||||
{
|
|
||||||
get { return f_levels.Count; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsPassed
|
|
||||||
{
|
|
||||||
get { return f_gameProgressIndex > LevelCount-1; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public FBLevel PlayLevel
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if (f_playLevelIndex < 0 || f_playLevelIndex > f_levels.Count-1)
|
|
||||||
throw new IndexOutOfRangeException("关卡不存在");
|
|
||||||
else
|
|
||||||
return f_levels[f_playLevelIndex];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Gold
|
|
||||||
{
|
|
||||||
get { return f_gold; }
|
|
||||||
set { f_gold = value; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsPlaying
|
|
||||||
{
|
|
||||||
get { return f_isPlaying; }
|
|
||||||
set { f_isPlaying = value; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public int GameProgressIndex
|
|
||||||
{
|
|
||||||
get { return f_gameProgressIndex; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public int PlayLevelIndex
|
|
||||||
{
|
|
||||||
get { return f_playLevelIndex; }
|
|
||||||
set { f_playLevelIndex = value; }
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
//初始化
|
|
||||||
public void OnInitialized()
|
|
||||||
{
|
|
||||||
//构建Level集合
|
|
||||||
List<FileInfo> files = FBTools.GetLevelFiles();
|
|
||||||
|
|
||||||
for (int i = 0; i < files.Count; i++)
|
|
||||||
{
|
|
||||||
FBLevel level = new FBLevel();
|
|
||||||
FBTools.FillLevel(files[i].FullName, ref level);
|
|
||||||
f_levels.Add(level);
|
|
||||||
}
|
|
||||||
|
|
||||||
//读取游戏进度
|
|
||||||
f_gameProgressIndex = FBSaver.GetProgress();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public void StartLevel(int levelIndex)
|
|
||||||
{
|
|
||||||
f_playLevelIndex = levelIndex;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void StoptLevel(bool isWin)
|
|
||||||
{
|
|
||||||
if (isWin && PlayLevelIndex > GameProgressIndex)
|
|
||||||
{
|
|
||||||
//更新进度
|
|
||||||
f_gameProgressIndex = PlayLevelIndex;
|
|
||||||
//保存进度
|
|
||||||
FBSaver.SetProgress(PlayLevelIndex);
|
|
||||||
}
|
|
||||||
|
|
||||||
f_isPlaying = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
//清档
|
|
||||||
public void ClearProgress()
|
|
||||||
{
|
|
||||||
f_isPlaying = false;
|
|
||||||
f_playLevelIndex = -1;
|
|
||||||
f_gameProgressIndex = -1;
|
|
||||||
FBSaver.SetProgress(-1);
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 4cb979413fa657444b4ee84a0ea0548a
|
|
||||||
timeCreated: 1539241598
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,127 +0,0 @@
|
|||||||
// Felix-Bang:FBRoundModel
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:
|
|
||||||
// Createtime:
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBRoundModel : FBModel
|
|
||||||
{
|
|
||||||
|
|
||||||
#region 常量
|
|
||||||
private const float f_roundInterval = 3f; //回合之间的间隔时间 3秒
|
|
||||||
private const float f_spawnInterval = 1f; //两怪物出生间隔 1秒
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 字段
|
|
||||||
private List<FBRound> f_rounds = new List<FBRound>();
|
|
||||||
private int f_roundIndex = -1; //当前回合的索引
|
|
||||||
private bool f_allRoundsComplete = false; //是否所有怪物都出来
|
|
||||||
private Coroutine f_coroutine;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 属性
|
|
||||||
public override string Name
|
|
||||||
{
|
|
||||||
get { return FBConsts.M_RoundModel; }
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> 回合索引 </summary>
|
|
||||||
public int RoundIndex
|
|
||||||
{
|
|
||||||
get { return f_roundIndex; }
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> 总回合数 </summary>
|
|
||||||
public int RoundTotal
|
|
||||||
{
|
|
||||||
get { return f_rounds.Count; }
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary> 所有回合是否完成 </summary>
|
|
||||||
public bool AllRoundComplete
|
|
||||||
{
|
|
||||||
get { return f_allRoundsComplete; }
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
public void LoadLevel(FBLevel level)
|
|
||||||
{
|
|
||||||
f_rounds = level.Rounds;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void StartRound()
|
|
||||||
{
|
|
||||||
f_coroutine = FBGame.Instance.StartCoroutine(RunRound());
|
|
||||||
}
|
|
||||||
|
|
||||||
public void StopRound()
|
|
||||||
{
|
|
||||||
FBGame.Instance.StopCoroutine(f_coroutine);
|
|
||||||
}
|
|
||||||
|
|
||||||
IEnumerator RunRound()
|
|
||||||
{
|
|
||||||
f_roundIndex = -1;
|
|
||||||
f_allRoundsComplete = false;
|
|
||||||
|
|
||||||
for (int i = 0; i < f_rounds.Count; i++)
|
|
||||||
{
|
|
||||||
f_roundIndex = i;
|
|
||||||
|
|
||||||
//回合开始
|
|
||||||
FBRoundStartArgs e = new FBRoundStartArgs
|
|
||||||
{
|
|
||||||
RoundIndex = f_roundIndex,
|
|
||||||
RoundTotal = RoundTotal
|
|
||||||
};
|
|
||||||
SendEvent(FBConsts.E_RoundStart, e);
|
|
||||||
|
|
||||||
FBRound round = f_rounds[i];
|
|
||||||
for (int k = 0; k < round.Count; k++)
|
|
||||||
{
|
|
||||||
//出怪间隔
|
|
||||||
yield return new WaitForSeconds(f_spawnInterval);
|
|
||||||
|
|
||||||
//出怪事件
|
|
||||||
FBSpawnMonsterArgs spawnArgs = new FBSpawnMonsterArgs
|
|
||||||
{
|
|
||||||
MonsterID = round.MonsterID
|
|
||||||
};
|
|
||||||
SendEvent(FBConsts.E_SpawnMonster,spawnArgs);
|
|
||||||
|
|
||||||
if (i == f_rounds.Count -1 && k == round.Count - 1)
|
|
||||||
f_allRoundsComplete = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
//回合间隔
|
|
||||||
if(!f_allRoundsComplete)
|
|
||||||
yield return new WaitForSeconds(f_roundInterval);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 帮助方法
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: ca267aec2cb5246408d9002d76b66ae9
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,10 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 322387269c27df9449c95e5b9bb39140
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1537231501
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,10 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e41cf6c26f88ee342bb9f369459c8bb3
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1539077336
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,88 +0,0 @@
|
|||||||
// Felix-Bang:FBUIComplete
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:通关
|
|
||||||
// Createtime:2018/10/09
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUIComplete : FBView
|
|
||||||
{
|
|
||||||
#region
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnRestart;
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnClear;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 属性
|
|
||||||
public override string Name
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return FBConsts.V_Complete;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Unity回调
|
|
||||||
|
|
||||||
|
|
||||||
private void Start()
|
|
||||||
{
|
|
||||||
btnRestart.onClick.AddListener(OnRestartClick);
|
|
||||||
btnClear.onClick.AddListener(OnClearClick);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 事件回调
|
|
||||||
public override void RegisterEvents()
|
|
||||||
{
|
|
||||||
base.RegisterEvents();
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void HandleEvent(string eventName, object data = null)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
|
|
||||||
private void OnRestartClick()
|
|
||||||
{
|
|
||||||
FBGame.Instance.LoadScene(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnClearClick()
|
|
||||||
{
|
|
||||||
FBGameModel gameModel = GetModel<FBGameModel>();
|
|
||||||
gameModel.ClearProgress();
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 653de9a746bd55042b3a3111fdf7afbd
|
|
||||||
timeCreated: 1538096377
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,10 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 6270cf0031a62494abedd2defb9006e0
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1539067831
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,169 +0,0 @@
|
|||||||
// Felix-Bang:FBUIBoard
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:关卡-公告栏
|
|
||||||
// Createtime:2018/9/28
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUIBoard : FBView
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
[SerializeField]
|
|
||||||
private Text txtScore;
|
|
||||||
[SerializeField]
|
|
||||||
private Text txtCurrent;
|
|
||||||
[SerializeField]
|
|
||||||
private Text txtTotal;
|
|
||||||
[SerializeField]
|
|
||||||
private GameObject goRoundInfo;
|
|
||||||
[SerializeField]
|
|
||||||
private GameObject goPause;
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnSpeed1;
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnSpeed2;
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnPause;
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnPlay;
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnSystem;
|
|
||||||
|
|
||||||
private GameSpeed f_speed = GameSpeed.One;
|
|
||||||
private bool f_isPlaying = false;
|
|
||||||
private int f_gold = 0;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 属性
|
|
||||||
public override string Name
|
|
||||||
{
|
|
||||||
get { return FBConsts.V_Board; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public int Glod
|
|
||||||
{
|
|
||||||
get { return f_gold; }
|
|
||||||
set
|
|
||||||
{
|
|
||||||
f_gold = value;
|
|
||||||
txtScore.text = value.ToString();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public GameSpeed Speed
|
|
||||||
{
|
|
||||||
get { return f_speed; }
|
|
||||||
set
|
|
||||||
{
|
|
||||||
f_speed = value;
|
|
||||||
|
|
||||||
btnSpeed1.gameObject.SetActive(f_speed == GameSpeed.One);
|
|
||||||
btnSpeed2.gameObject.SetActive(f_speed == GameSpeed.Two);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsPlaying
|
|
||||||
{
|
|
||||||
get { return f_isPlaying; }
|
|
||||||
set
|
|
||||||
{
|
|
||||||
f_isPlaying = value;
|
|
||||||
goRoundInfo.SetActive(value);
|
|
||||||
goPause.SetActive(!value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Unity回调
|
|
||||||
private void Awake()
|
|
||||||
{
|
|
||||||
Glod = 0;
|
|
||||||
IsPlaying = true;
|
|
||||||
Speed = GameSpeed.One;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Start()
|
|
||||||
{
|
|
||||||
btnSpeed1.onClick.AddListener(OnSpeed1Click);
|
|
||||||
btnSpeed2.onClick.AddListener(OnSpeed2Click);
|
|
||||||
btnPause.onClick.AddListener(OnPauseClick);
|
|
||||||
btnPlay.onClick.AddListener(OnPlayClick);
|
|
||||||
btnSystem.onClick.AddListener(OnSystemClick);
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 事件回调
|
|
||||||
|
|
||||||
public override void RegisterEvents() { }
|
|
||||||
|
|
||||||
public override void HandleEvent(string eventName, object data = null)
|
|
||||||
{}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
private void OnSpeed1Click()
|
|
||||||
{
|
|
||||||
Speed = GameSpeed.Two;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnSpeed2Click()
|
|
||||||
{
|
|
||||||
Debug.Log("Two");
|
|
||||||
Speed = GameSpeed.One;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnPauseClick()
|
|
||||||
{
|
|
||||||
IsPlaying = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnPlayClick()
|
|
||||||
{
|
|
||||||
IsPlaying = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnSystemClick()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void UpdateRoundInfo(int currentRound,int total)
|
|
||||||
{
|
|
||||||
txtCurrent.text = currentRound.ToString("D2");
|
|
||||||
txtTotal.text = total.ToString("D2");
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 帮助方法
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 3b31e2897f6af334dadb1f91a4ea26c5
|
|
||||||
timeCreated: 1538096377
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,103 +0,0 @@
|
|||||||
// Felix-Bang:FBUICountDown
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:关卡-倒计时
|
|
||||||
// Createtime:2018/9/28
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUICountDown : FBView
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
[SerializeField]
|
|
||||||
private Image imgCount;
|
|
||||||
[SerializeField]
|
|
||||||
private Sprite[] sptNumbers;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 属性
|
|
||||||
public override string Name
|
|
||||||
{
|
|
||||||
get { return FBConsts.V_CountDown; }
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 事件回调
|
|
||||||
public override void RegisterEvents()
|
|
||||||
{
|
|
||||||
EventLists.Add(FBConsts.E_SceneEnter);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void HandleEvent(string eventName, object data = null)
|
|
||||||
{
|
|
||||||
switch (eventName)
|
|
||||||
{
|
|
||||||
case FBConsts.E_SceneEnter:
|
|
||||||
FBSceneArgs e = (FBSceneArgs)data;
|
|
||||||
if (e.Index == 3)
|
|
||||||
StartCountDown();
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
private void Show()
|
|
||||||
{
|
|
||||||
gameObject.SetActive(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Hide()
|
|
||||||
{
|
|
||||||
gameObject.SetActive(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void StartCountDown()
|
|
||||||
{
|
|
||||||
Show();
|
|
||||||
StartCoroutine("DisplayCount");
|
|
||||||
}
|
|
||||||
|
|
||||||
IEnumerator DisplayCount()
|
|
||||||
{
|
|
||||||
int count = 3;
|
|
||||||
while (count > 0)
|
|
||||||
{
|
|
||||||
imgCount.sprite = sptNumbers[count - 1];
|
|
||||||
count--;
|
|
||||||
yield return new WaitForSeconds(1f);
|
|
||||||
|
|
||||||
if (count <= 0)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
Hide();
|
|
||||||
|
|
||||||
SendEvent(FBConsts.E_CountDownComplete);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 7af83b298332e584dba8c152bbcbd732
|
|
||||||
timeCreated: 1538096377
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,109 +0,0 @@
|
|||||||
// Felix-Bang:FBUILost
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:关卡-失败
|
|
||||||
// Createtime:2018/10/09
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUILost : FBView
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
[SerializeField]
|
|
||||||
private Text txtCurrent;
|
|
||||||
[SerializeField]
|
|
||||||
private Text txtTotal;
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnRestart;
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 属性
|
|
||||||
public override string Name
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return FBConsts.V_Lost;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Unity回调
|
|
||||||
private void Awake()
|
|
||||||
{
|
|
||||||
UpdatteRoundInfo(0,0);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Start()
|
|
||||||
{
|
|
||||||
btnRestart.onClick.AddListener(OnRestartClick);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 事件回调
|
|
||||||
public override void HandleEvent(string eventName, object data = null)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
private void OnRestartClick()
|
|
||||||
{
|
|
||||||
FBGameModel gameModel = GetModel<FBGameModel>();
|
|
||||||
SendEvent(FBConsts.E_LevelStart, new FBStartLevelArgs() { ID = gameModel.PlayLevelIndex });
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Show()
|
|
||||||
{
|
|
||||||
gameObject.SetActive(true);
|
|
||||||
FBRoundModel roundModel = GetModel<FBRoundModel>();
|
|
||||||
UpdatteRoundInfo(roundModel.RoundIndex+1,roundModel.RoundTotal);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Hide()
|
|
||||||
{
|
|
||||||
gameObject.SetActive(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void UpdatteRoundInfo(int currentRound,int totalRound)
|
|
||||||
{
|
|
||||||
txtCurrent.text = currentRound.ToString("D2");
|
|
||||||
txtTotal.text = totalRound.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 帮助方法
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: a4e0ce6f3d782594988cef4f8232e318
|
|
||||||
timeCreated: 1538096377
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,193 +0,0 @@
|
|||||||
// Felix-Bang:FBUISpawner
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:怪物孵化器
|
|
||||||
// Createtime:2018/10/12
|
|
||||||
|
|
||||||
using FBFramework;
|
|
||||||
using System;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUISpawner : FBView
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
FBMap f_map;
|
|
||||||
FBCarrot f_carrot = null;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 属性
|
|
||||||
public override string Name
|
|
||||||
{
|
|
||||||
get { return FBConsts.V_Spawner; }
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 事件回调
|
|
||||||
public override void RegisterEvents()
|
|
||||||
{
|
|
||||||
EventLists.Add(FBConsts.E_SceneEnter);
|
|
||||||
EventLists.Add(FBConsts.E_SpawnMonster);
|
|
||||||
EventLists.Add(FBConsts.E_SpawnTower);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void HandleEvent(string eventName, object data = null)
|
|
||||||
{
|
|
||||||
switch (eventName)
|
|
||||||
{
|
|
||||||
case FBConsts.E_SceneEnter:
|
|
||||||
OnSpawnCarrot(data as FBSceneArgs);
|
|
||||||
break;
|
|
||||||
case FBConsts.E_SpawnMonster:
|
|
||||||
OnSpawnMonster(data as FBSpawnMonsterArgs);
|
|
||||||
break;
|
|
||||||
case FBConsts.E_SpawnTower:
|
|
||||||
OnSpawnTower(data as FBSpawnTowerArgs);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnMapGridClick(object sender, FBGridClickEventArgs e)
|
|
||||||
{
|
|
||||||
FBGameModel game = GetModel<FBGameModel>();
|
|
||||||
|
|
||||||
//游戏还未开始,那么不操作菜单
|
|
||||||
if (!game.IsPlaying)
|
|
||||||
return;
|
|
||||||
|
|
||||||
//如果有菜单显示,那么隐藏菜单
|
|
||||||
if (FBUITowerPopup.Instance.IsPopShow)
|
|
||||||
{
|
|
||||||
SendEvent(FBConsts.E_TowerHide);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
FBGrid grid = e.Grid;
|
|
||||||
if (!grid.CanHold)
|
|
||||||
{
|
|
||||||
SendEvent(FBConsts.E_TowerHide);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (grid.Data == null)
|
|
||||||
{
|
|
||||||
FBShowTowerCreatArgs args = new FBShowTowerCreatArgs()
|
|
||||||
{
|
|
||||||
Position = f_map.GetPosition(grid),
|
|
||||||
UpSide = grid.Index_Y < FBMap.RowCount / 2
|
|
||||||
};
|
|
||||||
SendEvent(FBConsts.E_ShowTowerCreat, args);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
FBShowTowerUpgradeArgs args = new FBShowTowerUpgradeArgs() { Tower = grid.Data as FBTower };
|
|
||||||
SendEvent(FBConsts.E_ShowTowerUpgrade, args);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
private void OnSpawnCarrot(FBSceneArgs args)
|
|
||||||
{
|
|
||||||
if (args.Index == 3)
|
|
||||||
{
|
|
||||||
f_map = GetComponent<FBMap>();
|
|
||||||
f_map.OnFBGridClick += OnMapGridClick;
|
|
||||||
//获取数据
|
|
||||||
FBGameModel gameModel = GetModel<FBGameModel>();
|
|
||||||
f_map.LoadLevel(gameModel.PlayLevel);
|
|
||||||
|
|
||||||
GameObject go = FBGame.Instance.ObjectPool.Spawn("Carrot");
|
|
||||||
f_carrot = go.GetComponent<FBCarrot>();
|
|
||||||
f_carrot.transform.position = f_map.Path[f_map.Path.Length - 1];
|
|
||||||
f_carrot.DeadAction += CarrotDead;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnSpawnMonster(FBSpawnMonsterArgs args)
|
|
||||||
{
|
|
||||||
//创建怪物
|
|
||||||
string monsterName = "Monster" + args.MonsterID;
|
|
||||||
|
|
||||||
GameObject go= FBGame.Instance.ObjectPool.Spawn(monsterName);
|
|
||||||
FBMonster monster = go.GetComponent<FBMonster>();
|
|
||||||
monster.HPChangedAction += MonsterHPChanged;
|
|
||||||
monster.DeadAction += MonsterDead;
|
|
||||||
monster.ReachedAction += MonSterReched;
|
|
||||||
monster.OnLoad(f_map.Path);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnSpawnTower(FBSpawnTowerArgs args)
|
|
||||||
{
|
|
||||||
//创建Tower
|
|
||||||
FBTowerInfo info = FBGame.Instance.StaticData.GetTower(args.TowerID);
|
|
||||||
GameObject go = FBGame.Instance.ObjectPool.Spawn(info.PrefabName);
|
|
||||||
|
|
||||||
FBTower tower = go.GetComponent<FBTower>();
|
|
||||||
tower.transform.position = args.Position;
|
|
||||||
|
|
||||||
//Tile里放入Tower信息
|
|
||||||
FBGrid tile = f_map.GetGrid(args.Position);
|
|
||||||
|
|
||||||
////初始化Tower
|
|
||||||
tower.Load(args.TowerID, tile,f_map.MapRect);
|
|
||||||
|
|
||||||
tile.Data = tower;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void MonsterHPChanged(int arg1, int arg2)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void MonSterReched(FBMonster monster)
|
|
||||||
{
|
|
||||||
//萝卜掉血
|
|
||||||
f_carrot.Damage(1);
|
|
||||||
//怪物死亡
|
|
||||||
monster.HP = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
private void MonsterDead(FBRole monster)
|
|
||||||
{
|
|
||||||
//回收
|
|
||||||
FBGame.Instance.ObjectPool.Unspawn(monster.gameObject);
|
|
||||||
|
|
||||||
GameObject[] monsters = GameObject.FindGameObjectsWithTag("Monster");
|
|
||||||
FBRoundModel roundModel = GetModel<FBRoundModel>();
|
|
||||||
|
|
||||||
// 萝卜没死 场景上已没有怪物 所有怪物已出完
|
|
||||||
if (!f_carrot.IsDead && monsters.Length <= 0 && roundModel.AllRoundComplete)
|
|
||||||
{
|
|
||||||
FBGameModel gameModel = GetModel<FBGameModel>();
|
|
||||||
//游戏胜利
|
|
||||||
SendEvent(FBConsts.E_LevelEnd,new FBEndLevelArgs() { ID = gameModel.PlayLevelIndex,IsWin=true });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void CarrotDead(FBRole carrot)
|
|
||||||
{
|
|
||||||
FBGame.Instance.ObjectPool.Unspawn(carrot.gameObject);
|
|
||||||
|
|
||||||
FBGameModel gameModel = GetModel<FBGameModel>();
|
|
||||||
SendEvent(FBConsts.E_LevelEnd, new FBEndLevelArgs() { ID = gameModel.PlayLevelIndex, IsWin = false });
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 1d2ce118027c0664ea43efb9c2f00d50
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,110 +0,0 @@
|
|||||||
// Felix-Bang:FBUISystem
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:关卡-系统
|
|
||||||
// Createtime:2018/10/09
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUISystem : FBView
|
|
||||||
{
|
|
||||||
|
|
||||||
#region 常量
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 事件
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 字段
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnResume;
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnRestart;
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnSelect;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 属性
|
|
||||||
public override string Name
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return FBConsts.V_System;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Unity回调
|
|
||||||
|
|
||||||
|
|
||||||
private void Start()
|
|
||||||
{
|
|
||||||
btnResume.onClick.AddListener(OnResumeClick);
|
|
||||||
btnRestart.onClick.AddListener(OnRestartClick);
|
|
||||||
btnSelect.onClick.AddListener(OnSelectClick);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 事件回调
|
|
||||||
public override void HandleEvent(string eventName, object data = null)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
|
|
||||||
private void OnResumeClick()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnRestartClick()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnSelectClick()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Show()
|
|
||||||
{
|
|
||||||
gameObject.SetActive(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Hide()
|
|
||||||
{
|
|
||||||
gameObject.SetActive(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: b6cdf32c1439fb6438e9836e6ada2be2
|
|
||||||
timeCreated: 1538096377
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,123 +0,0 @@
|
|||||||
// Felix-Bang:FBUIWin
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:关卡-获胜
|
|
||||||
// Createtime:2018/10/09
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUIWin : FBView
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
[SerializeField]
|
|
||||||
private Text txtCurrent;
|
|
||||||
[SerializeField]
|
|
||||||
private Text txtTotal;
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnRestart;
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnContinute;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 属性
|
|
||||||
public override string Name
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return FBConsts.V_Win;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Unity回调
|
|
||||||
private void Awake()
|
|
||||||
{
|
|
||||||
UpdatteRoundInfo(0,0);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Start()
|
|
||||||
{
|
|
||||||
btnRestart.onClick.AddListener(OnRestartClick);
|
|
||||||
btnContinute.onClick.AddListener(OnContinuteClick);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 事件回调
|
|
||||||
public override void HandleEvent(string eventName, object data = null)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
private void OnRestartClick()
|
|
||||||
{
|
|
||||||
FBGameModel gameModel = GetModel<FBGameModel>();
|
|
||||||
SendEvent(FBConsts.E_LevelStart, new FBStartLevelArgs() { ID = gameModel.PlayLevelIndex });
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnContinuteClick()
|
|
||||||
{
|
|
||||||
FBGameModel gameModel = GetModel<FBGameModel>();
|
|
||||||
if (gameModel.PlayLevelIndex >= gameModel.LevelCount - 1)
|
|
||||||
{
|
|
||||||
//游戏通关
|
|
||||||
FBGame.Instance.LoadScene(4);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
SendEvent(FBConsts.E_LevelStart, new FBStartLevelArgs() { ID = gameModel.PlayLevelIndex + 1 }); //开始下一关卡
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Show()
|
|
||||||
{
|
|
||||||
gameObject.SetActive(true);
|
|
||||||
FBRoundModel roundModel = GetModel<FBRoundModel>();
|
|
||||||
UpdatteRoundInfo(roundModel.RoundIndex + 1, roundModel.RoundTotal);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void Hide()
|
|
||||||
{
|
|
||||||
gameObject.SetActive(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void UpdatteRoundInfo(int currentRound,int totalRound)
|
|
||||||
{
|
|
||||||
txtCurrent.text = currentRound.ToString("D2");
|
|
||||||
txtTotal.text = totalRound.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 帮助方法
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 8f8f5dc192997164289394496ee40898
|
|
||||||
timeCreated: 1538096377
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,8 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: eea314f47acbb8d4395b76b2c82cbec6
|
|
||||||
folderAsset: yes
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,45 +0,0 @@
|
|||||||
// Felix-Bang:FBSellIcon
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:出售Icon
|
|
||||||
// Createtime:2018/10/16
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBSellIcon : MonoBehaviour
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
FBTower f_tower;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Unity回调
|
|
||||||
private void OnMouseDown()
|
|
||||||
{
|
|
||||||
SendMessageUpwards("OnSellTower", f_tower, SendMessageOptions.RequireReceiver);
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
public void Load(FBTower tower)
|
|
||||||
{
|
|
||||||
f_tower = tower;
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 214b5c9e29478f849a525340ea69df19
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,56 +0,0 @@
|
|||||||
// Felix-Bang:FBSpawnPanel
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:创建炮塔
|
|
||||||
// Createtime:2018/10/16
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBSpawnPanel : MonoBehaviour
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
FBTowerIcon[] f_icons;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Unity回调
|
|
||||||
void Awake ()
|
|
||||||
{
|
|
||||||
f_icons = GetComponentsInChildren<FBTowerIcon>();
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
public void Show(FBGameModel gm, Vector3 createPosition, bool upSide)
|
|
||||||
{
|
|
||||||
transform.position = createPosition;
|
|
||||||
for (int i = 0; i < f_icons.Length; i++)
|
|
||||||
{
|
|
||||||
FBTowerInfo info = FBGame.Instance.StaticData.GetTower(i);
|
|
||||||
f_icons[i].Load(gm, info, createPosition, upSide);
|
|
||||||
}
|
|
||||||
gameObject.SetActive(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Hide()
|
|
||||||
{
|
|
||||||
gameObject.SetActive(false);
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: facfd014f9beb024d83a6fbfebd0083d
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,68 +0,0 @@
|
|||||||
// Felix-Bang:FBTowerIcon
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:炮塔Icon
|
|
||||||
// Createtime:2018/10/16
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBTowerIcon : MonoBehaviour
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
SpriteRenderer f_render;
|
|
||||||
FBTowerInfo f_towerInfo;
|
|
||||||
Vector3 f_creatPos;
|
|
||||||
bool f_enough = false; //玩家的金币是否足够买该塔
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Unity回调
|
|
||||||
void Awake ()
|
|
||||||
{
|
|
||||||
f_render = GetComponent<SpriteRenderer>();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnMouseDown()
|
|
||||||
{
|
|
||||||
if (!f_enough)
|
|
||||||
return;
|
|
||||||
|
|
||||||
int id = f_towerInfo.ID;
|
|
||||||
Vector3 pos = f_creatPos;
|
|
||||||
object[] args = { id, pos };
|
|
||||||
|
|
||||||
SendMessageUpwards("OnSpawnTower",args,SendMessageOptions.RequireReceiver);
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
public void Load(FBGameModel game,FBTowerInfo info,Vector3 creatPos,bool upSide)
|
|
||||||
{
|
|
||||||
f_towerInfo = info;
|
|
||||||
f_creatPos = creatPos;
|
|
||||||
//f_enough = game.Gold > info.BasePrice;
|
|
||||||
f_enough = true;
|
|
||||||
string path= "Res/Roles/" + (f_enough ? info.NormalIcon : info.DisabledIcon);
|
|
||||||
f_render.sprite = Resources.Load<Sprite>(path);
|
|
||||||
|
|
||||||
Vector3 pos = transform.localPosition;
|
|
||||||
pos.y = upSide ? Mathf.Abs(pos.y) : -Mathf.Abs(pos.y);
|
|
||||||
transform.localPosition = pos;
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 94554cdc827555a44bdd5d6681a92a12
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,137 +0,0 @@
|
|||||||
// Felix-Bang:FBUITowerPopup
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:炮塔管理界面
|
|
||||||
// Createtime:2018/10/16
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUITowerPopup : FBView
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
[SerializeField]
|
|
||||||
private FBSpawnPanel f_spawnPanel;
|
|
||||||
[SerializeField]
|
|
||||||
private FBUpgadePanel f_upgadePanel;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 属性
|
|
||||||
private static FBUITowerPopup f_Instance = null;
|
|
||||||
public static FBUITowerPopup Instance
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return f_Instance;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public override string Name
|
|
||||||
{
|
|
||||||
get { return FBConsts.V_TowerPopup; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsPopShow
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
foreach (Transform child in transform)
|
|
||||||
{
|
|
||||||
if (child.gameObject.activeSelf)
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 事件回调
|
|
||||||
void Awake()
|
|
||||||
{
|
|
||||||
f_Instance = this;
|
|
||||||
}
|
|
||||||
|
|
||||||
void Start()
|
|
||||||
{
|
|
||||||
HideAllPanels();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public override void RegisterEvents()
|
|
||||||
{
|
|
||||||
EventLists.Add(FBConsts.E_ShowTowerCreat);
|
|
||||||
EventLists.Add(FBConsts.E_ShowTowerUpgrade);
|
|
||||||
EventLists.Add(FBConsts.E_TowerHide);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void HandleEvent(string eventName, object data = null)
|
|
||||||
{
|
|
||||||
switch (eventName)
|
|
||||||
{
|
|
||||||
case FBConsts.E_ShowTowerCreat:
|
|
||||||
ShowCreatePanel(data as FBShowTowerCreatArgs);
|
|
||||||
break;
|
|
||||||
case FBConsts.E_ShowTowerUpgrade:
|
|
||||||
ShowUpgradePanel(data as FBShowTowerUpgradeArgs);
|
|
||||||
break;
|
|
||||||
case FBConsts.E_TowerHide:
|
|
||||||
HideAllPanels();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void OnSpawnTower(object[] args)
|
|
||||||
{
|
|
||||||
SendEvent(FBConsts.E_SpawnTower,new FBSpawnTowerArgs() { TowerID =(int)args[0],Position=(Vector3)args[1]});
|
|
||||||
}
|
|
||||||
|
|
||||||
void OnUpgradeTower(FBTower tower)
|
|
||||||
{
|
|
||||||
SendEvent(FBConsts.E_UpgradeTower, new FBUpgradeTowerArgs() { Tower = tower });
|
|
||||||
}
|
|
||||||
|
|
||||||
void OnSellTower(FBTower tower)
|
|
||||||
{
|
|
||||||
SendEvent(FBConsts.E_SellTower, new FBSellTowerArgs() { Tower = tower });
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
void ShowCreatePanel(FBShowTowerCreatArgs args)
|
|
||||||
{
|
|
||||||
HideAllPanels();
|
|
||||||
FBGameModel gm = GetModel<FBGameModel>();
|
|
||||||
f_spawnPanel.Show(gm, args.Position, args.UpSide);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ShowUpgradePanel(FBShowTowerUpgradeArgs args)
|
|
||||||
{
|
|
||||||
HideAllPanels();
|
|
||||||
FBGameModel gm = GetModel<FBGameModel>();
|
|
||||||
f_upgadePanel.Show(gm, args.Tower);
|
|
||||||
}
|
|
||||||
|
|
||||||
void HideAllPanels()
|
|
||||||
{
|
|
||||||
f_spawnPanel.Hide();
|
|
||||||
f_upgadePanel.Hide();
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 7420a207aab12d646ae70c1d23ece1d0
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,57 +0,0 @@
|
|||||||
// Felix-Bang:FBUpgadePanel
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:升级/出售炮塔
|
|
||||||
// Createtime:2018/10/16
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUpgadePanel : MonoBehaviour
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
FBUpgradeIcon f_upgradeIcon;
|
|
||||||
FBSellIcon f_sellIcon;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Unity回调
|
|
||||||
void Awake()
|
|
||||||
{
|
|
||||||
f_upgradeIcon = GetComponentInChildren<FBUpgradeIcon>();
|
|
||||||
f_sellIcon = GetComponentInChildren<FBSellIcon>();
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
public void Show(FBGameModel gm, FBTower tower)
|
|
||||||
{
|
|
||||||
transform.position = tower.transform.position;
|
|
||||||
|
|
||||||
f_upgradeIcon.Load(gm, tower);
|
|
||||||
f_sellIcon.Load(tower);
|
|
||||||
gameObject.SetActive(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void Hide()
|
|
||||||
{
|
|
||||||
gameObject.SetActive(false);
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 6354cd89d397c424ba3984b05f742929
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,58 +0,0 @@
|
|||||||
// Felix-Bang:FBUpgradeIcon
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:升级Icon
|
|
||||||
// Createtime:2018/10/16
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUpgradeIcon : MonoBehaviour
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
SpriteRenderer f_render;
|
|
||||||
FBTower f_tower;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
#region Unity回调
|
|
||||||
void Awake ()
|
|
||||||
{
|
|
||||||
f_render = GetComponent<SpriteRenderer>();
|
|
||||||
}
|
|
||||||
|
|
||||||
void OnMouseDown()
|
|
||||||
{
|
|
||||||
if (f_tower.IsTopLevel)
|
|
||||||
return;
|
|
||||||
|
|
||||||
SendMessageUpwards("OnUpgradeTower", f_tower, SendMessageOptions.RequireReceiver);
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
public void Load(FBGameModel game, FBTower tower)
|
|
||||||
{
|
|
||||||
f_tower = tower;
|
|
||||||
|
|
||||||
FBTowerInfo info = FBGame.Instance.StaticData.GetTower(tower.ID);
|
|
||||||
string path = "Res/Roles/" + (tower.IsTopLevel ? info.NormalIcon : info.DisabledIcon);
|
|
||||||
f_render.sprite = Resources.Load<Sprite>(path);
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 5d8dbca7490e3fe4387d529894242df8
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,10 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 53a1c8dc83496e04fb0dbbf6273a27d6
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1539067893
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,91 +0,0 @@
|
|||||||
// Felix-Bang:FBUICard
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:
|
|
||||||
// Createtime:
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
using UnityEngine.EventSystems;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUICard : MonoBehaviour,IPointerDownHandler
|
|
||||||
{
|
|
||||||
//点击事件
|
|
||||||
public event Action<FBCard> OnClickAction;
|
|
||||||
[SerializeField]
|
|
||||||
private Image imgCard;
|
|
||||||
[SerializeField]
|
|
||||||
private Image imgLock;
|
|
||||||
//卡片属性
|
|
||||||
private FBCard f_card = null;
|
|
||||||
public FBCard Card
|
|
||||||
{
|
|
||||||
set
|
|
||||||
{
|
|
||||||
f_card = value;
|
|
||||||
BindCard();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//是否为半透明
|
|
||||||
private bool f_isTransparent;
|
|
||||||
public bool IsTransparent
|
|
||||||
{
|
|
||||||
get { return f_isTransparent; }
|
|
||||||
|
|
||||||
set
|
|
||||||
{
|
|
||||||
f_isTransparent = value;
|
|
||||||
|
|
||||||
Image[] images = new Image[] { imgCard, imgLock };
|
|
||||||
foreach (Image img in images)
|
|
||||||
{
|
|
||||||
Color c = img.color;
|
|
||||||
c.a = value ? 0.5f : 1f;
|
|
||||||
img.color = c;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void BindCard()
|
|
||||||
{
|
|
||||||
//加载图片
|
|
||||||
string cardFile = "file://" + FBConsts.CardsDir +"\\"+ f_card.CardImage;
|
|
||||||
StartCoroutine(FBTools.LoadImage(cardFile,imgCard));
|
|
||||||
|
|
||||||
//是否锁定
|
|
||||||
imgLock.gameObject.SetActive(f_card.IsLocked);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void OnPointerDown(PointerEventData eventData)
|
|
||||||
{
|
|
||||||
if (OnClickAction != null)
|
|
||||||
OnClickAction(f_card);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnDestroy()
|
|
||||||
{
|
|
||||||
while (OnClickAction != null)
|
|
||||||
OnClickAction -= OnClickAction;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 8ad48058e95b74c42b0fe461f94b7fd5
|
|
||||||
timeCreated: 1539140041
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,194 +0,0 @@
|
|||||||
// Felix-Bang:FBUISelect
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:选择界面
|
|
||||||
// Createtime:2018/10/09
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using UnityEngine.UI;
|
|
||||||
using FBFramework;
|
|
||||||
using System.IO;
|
|
||||||
using System;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUISelect : FBView
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnBack;
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnHelp;
|
|
||||||
[SerializeField]
|
|
||||||
private Button btnStart;
|
|
||||||
[SerializeField]
|
|
||||||
private FBUICard f_leftCard;
|
|
||||||
[SerializeField]
|
|
||||||
private FBUICard f_currentCard;
|
|
||||||
[SerializeField]
|
|
||||||
private FBUICard f_rightCard;
|
|
||||||
|
|
||||||
private List<FBCard> f_cards = new List<FBCard>();
|
|
||||||
private int f_selectedIndex = -1;
|
|
||||||
FBGameModel f_gameModel = null;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 属性
|
|
||||||
public override string Name
|
|
||||||
{
|
|
||||||
get { return FBConsts.V_Select; }
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 方法
|
|
||||||
private void OnBackButtonClick()
|
|
||||||
{
|
|
||||||
FBGame.Instance.LoadScene(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnHelpButtonClick()
|
|
||||||
{
|
|
||||||
Debug.Log("Help");
|
|
||||||
}
|
|
||||||
|
|
||||||
private void OnStartButtonClick()
|
|
||||||
{
|
|
||||||
FBStartLevelArgs e = new FBStartLevelArgs
|
|
||||||
{
|
|
||||||
ID = f_selectedIndex
|
|
||||||
};
|
|
||||||
|
|
||||||
SendEvent(FBConsts.E_LevelStart, e);
|
|
||||||
}
|
|
||||||
|
|
||||||
//public void ChooseLevel()
|
|
||||||
//{
|
|
||||||
// FBStartLevelArgs e = new FBStartLevelArgs
|
|
||||||
// {
|
|
||||||
// ID = f_selectedIndex
|
|
||||||
// };
|
|
||||||
|
|
||||||
// SendEvent(FBConsts.E_LevelStart, e);
|
|
||||||
//}
|
|
||||||
|
|
||||||
private void LoadCards()
|
|
||||||
{
|
|
||||||
//获取Level集合
|
|
||||||
List<FBLevel> levels = f_gameModel.AllLevels;
|
|
||||||
|
|
||||||
//构建Card合集
|
|
||||||
for (int i = 0; i < levels.Count; i++)
|
|
||||||
{
|
|
||||||
FBCard card = new FBCard()
|
|
||||||
{
|
|
||||||
LevelID = i,
|
|
||||||
CardImage = levels[i].CardImage,
|
|
||||||
IsLocked = !(i <= f_gameModel.GameProgressIndex +1) //TODO
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
f_cards.Add(card);
|
|
||||||
}
|
|
||||||
|
|
||||||
f_leftCard.OnClickAction += (info)=>SelectCard(info.LevelID);
|
|
||||||
f_currentCard.OnClickAction += (info) => SelectCard(info.LevelID);
|
|
||||||
f_rightCard.OnClickAction += (info) => SelectCard(info.LevelID);
|
|
||||||
|
|
||||||
//默认选择第一个关卡
|
|
||||||
SelectCard(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
//选择关卡
|
|
||||||
private void SelectCard(int index)
|
|
||||||
{
|
|
||||||
if (f_selectedIndex == index)
|
|
||||||
return;
|
|
||||||
|
|
||||||
f_selectedIndex = index;
|
|
||||||
//计算索引
|
|
||||||
int leftIndex = f_selectedIndex - 1;
|
|
||||||
int currentIndex = f_selectedIndex;
|
|
||||||
int rightIndex = f_selectedIndex + 1;
|
|
||||||
|
|
||||||
//绑定数据
|
|
||||||
if (leftIndex < 0)
|
|
||||||
f_leftCard.gameObject.SetActive(false);
|
|
||||||
else
|
|
||||||
{
|
|
||||||
f_leftCard.gameObject.SetActive(true);
|
|
||||||
f_leftCard.IsTransparent = true;
|
|
||||||
f_leftCard.Card = f_cards[leftIndex];
|
|
||||||
}
|
|
||||||
|
|
||||||
f_currentCard.IsTransparent = false;
|
|
||||||
f_currentCard.Card = f_cards[currentIndex];
|
|
||||||
//开始按钮显示设置
|
|
||||||
btnStart.gameObject.SetActive(!f_cards[currentIndex].IsLocked);
|
|
||||||
|
|
||||||
|
|
||||||
if (rightIndex >= f_cards.Count)
|
|
||||||
f_rightCard.gameObject.SetActive(false);
|
|
||||||
else
|
|
||||||
{
|
|
||||||
f_rightCard.gameObject.SetActive(true);
|
|
||||||
f_rightCard.IsTransparent = true;
|
|
||||||
f_rightCard.Card = f_cards[rightIndex];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Unity回调
|
|
||||||
private void Start()
|
|
||||||
{
|
|
||||||
btnBack.onClick.AddListener(OnBackButtonClick);
|
|
||||||
btnHelp.onClick.AddListener(OnHelpButtonClick);
|
|
||||||
btnStart.onClick.AddListener(OnStartButtonClick);
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 事件回调
|
|
||||||
public override void RegisterEvents()
|
|
||||||
{
|
|
||||||
EventLists.Add(FBConsts.E_SceneEnter);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void HandleEvent(string eventName, object data = null)
|
|
||||||
{
|
|
||||||
switch (eventName)
|
|
||||||
{
|
|
||||||
case FBConsts.E_SceneEnter:
|
|
||||||
FBSceneArgs e = data as FBSceneArgs;
|
|
||||||
if (e.Index == 2)
|
|
||||||
{
|
|
||||||
f_gameModel = GetModel<FBGameModel>();
|
|
||||||
LoadCards();
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region 帮助方法
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 9eba4bc16423c65428d29dccd276f95a
|
|
||||||
timeCreated: 1538013051
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,10 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: a291a7ad3d2bb0a4186b5738c9c60a8d
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1539067879
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,41 +0,0 @@
|
|||||||
// Felix-Bang:FBUIStart
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:开始界面
|
|
||||||
// Createtime:2018/9/25
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUIStart : FBView
|
|
||||||
{
|
|
||||||
public override string Name
|
|
||||||
{
|
|
||||||
get { return FBConsts.V_Start; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public void GotoSelect()
|
|
||||||
{
|
|
||||||
FBGame.Instance.LoadScene(2);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void HandleEvent(string eventName, object data = null) {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 10b160c83e19a9a4f8d3d339b084960b
|
|
||||||
timeCreated: 1537944097
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,10 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: fac1d9a2632f4c34e9a3c81fcc5f8eaa
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1537231551
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,38 +0,0 @@
|
|||||||
// Felix-Bang:FBCountDownCompleteController
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:倒计时结束控制器
|
|
||||||
// Createtime:2018/10/12
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBCountDownCompleteController : FBController
|
|
||||||
{
|
|
||||||
public override void Execute(object data = null)
|
|
||||||
{
|
|
||||||
//游戏开始
|
|
||||||
FBGameModel gameModel = GetModel<FBGameModel>();
|
|
||||||
gameModel.IsPlaying = true;
|
|
||||||
|
|
||||||
//出怪
|
|
||||||
FBRoundModel roundModel = GetModel<FBRoundModel>();
|
|
||||||
roundModel.StartRound();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 9b56a9b48ce55c044b0853dfd45e4078
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,47 +0,0 @@
|
|||||||
// Felix-Bang:FBLevelEndController
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:开始关卡控制器
|
|
||||||
// Createtime:
|
|
||||||
|
|
||||||
|
|
||||||
using FBFramework;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBLevelEndController : FBController
|
|
||||||
{
|
|
||||||
public override void Execute(object data = null)
|
|
||||||
{
|
|
||||||
FBEndLevelArgs e = data as FBEndLevelArgs;
|
|
||||||
|
|
||||||
//保存游戏状态
|
|
||||||
FBGameModel gameModel = GetModel<FBGameModel>();
|
|
||||||
FBRoundModel roundModel = GetModel<FBRoundModel>();
|
|
||||||
|
|
||||||
roundModel.StopRound();
|
|
||||||
gameModel.StoptLevel(e.IsWin);
|
|
||||||
|
|
||||||
//弹出UI
|
|
||||||
if (e.IsWin)
|
|
||||||
GetView<FBUIWin>().Show();
|
|
||||||
else
|
|
||||||
GetView<FBUILost>().Show();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 7e3277acc2403a2489df5704d8c94b2c
|
|
||||||
timeCreated: 1539133569
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,46 +0,0 @@
|
|||||||
// Felix-Bang:FBLevelStartController
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:开始关卡控制器
|
|
||||||
// Createtime:2018/9/19
|
|
||||||
|
|
||||||
|
|
||||||
using FBFramework;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBLevelStartController : FBController
|
|
||||||
{
|
|
||||||
public override void Execute(object data = null)
|
|
||||||
{
|
|
||||||
FBStartLevelArgs e = data as FBStartLevelArgs;
|
|
||||||
//第一步
|
|
||||||
FBGameModel gameModel = GetModel<FBGameModel>();
|
|
||||||
gameModel.StartLevel(e.ID);
|
|
||||||
|
|
||||||
//第二步
|
|
||||||
FBRoundModel roundModel = GetModel<FBRoundModel>();
|
|
||||||
roundModel.LoadLevel(gameModel.PlayLevel);
|
|
||||||
|
|
||||||
// 进入游戏
|
|
||||||
FBGame.Instance.LoadScene(3);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 219070f71d344ca4786349335551352c
|
|
||||||
timeCreated: 1539133569
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,65 +0,0 @@
|
|||||||
// Felix-Bang:FBSceneEnterController
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:进入场景控制器
|
|
||||||
// Createtime:2018/9/26
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBSceneEnterController : FBController
|
|
||||||
{
|
|
||||||
public override void Execute(object data = null)
|
|
||||||
{
|
|
||||||
FBSceneArgs e = data as FBSceneArgs;
|
|
||||||
|
|
||||||
//注册视图(View)
|
|
||||||
switch (e.Index)
|
|
||||||
{
|
|
||||||
case 0:
|
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
RegisterView(GameObject.Find("UIStart").GetComponent<FBUIStart>());
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
RegisterView(GameObject.Find("UISelect").GetComponent<FBUISelect>());
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
RegisterView(GameObject.Find("Map").transform.GetComponent<FBUISpawner>());
|
|
||||||
RegisterView(GameObject.Find("TowerPopup").transform.GetComponent<FBUITowerPopup>());
|
|
||||||
RegisterView(GameObject.Find("Canvas").transform.Find("UIBoard").GetComponent<FBUIBoard>());
|
|
||||||
RegisterView(GameObject.Find("Canvas").transform.Find("UICountDown").GetComponent<FBUICountDown>());
|
|
||||||
RegisterView(GameObject.Find("Canvas").transform.Find("UIWin").GetComponent<FBUIWin>());
|
|
||||||
RegisterView(GameObject.Find("Canvas").transform.Find("UILost").GetComponent<FBUILost>());
|
|
||||||
RegisterView(GameObject.Find("Canvas").transform.Find("UISystem").GetComponent<FBUISystem>());
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
RegisterView(GameObject.Find("UIComplete").GetComponent<FBUIComplete>());
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 6314258ac699cec4eaa5d052b5b288fd
|
|
||||||
timeCreated: 1537926293
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,34 +0,0 @@
|
|||||||
// Felix-Bang:FBSceneExitController
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:退出场景控制器
|
|
||||||
// Createtime:2018/9/26
|
|
||||||
|
|
||||||
|
|
||||||
using FBFramework;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBSceneExitController : FBController
|
|
||||||
{
|
|
||||||
public override void Execute(object data = null)
|
|
||||||
{
|
|
||||||
//离开场景前回收
|
|
||||||
FBGame.Instance.ObjectPool.UnspawnAll();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 4206607d1f57bb24c8fb2cad5104cc62
|
|
||||||
timeCreated: 1537926293
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,43 +0,0 @@
|
|||||||
// Felix-Bang:FBSellTowerCommand
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:
|
|
||||||
// Createtime:
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBSellTowerCommand : FBController
|
|
||||||
{
|
|
||||||
public override void Execute(object data = null)
|
|
||||||
{
|
|
||||||
FBSellTowerArgs e = data as FBSellTowerArgs;
|
|
||||||
FBTower tower = e.Tower;
|
|
||||||
|
|
||||||
//清除Tile存储的信息
|
|
||||||
tower.Tile.Data = null;
|
|
||||||
|
|
||||||
//半价出售
|
|
||||||
FBGameModel gm = GetModel<FBGameModel>();
|
|
||||||
gm.Gold += e.Tower.Price / 2;
|
|
||||||
|
|
||||||
//回收
|
|
||||||
FBGame.Instance.ObjectPool.Unspawn(e.Tower.gameObject);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 9f96d299adc26f244aa8c5b1ab87b2bc
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,57 +0,0 @@
|
|||||||
// Felix-Bang:FBStartUpController
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:启动游戏控制器
|
|
||||||
// Createtime:2018/9/26
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBStartUpController : FBController
|
|
||||||
{
|
|
||||||
public override void Execute(object data = null)
|
|
||||||
{
|
|
||||||
//注册模型(Model)
|
|
||||||
RegisterModel(new FBGameModel());
|
|
||||||
RegisterModel(new FBRoundModel());
|
|
||||||
//注册命令(Command)
|
|
||||||
RegistControllers();
|
|
||||||
|
|
||||||
//初始化
|
|
||||||
FBGameModel gameModel = GetModel<FBGameModel>();
|
|
||||||
gameModel.OnInitialized();
|
|
||||||
|
|
||||||
//进入开始界面
|
|
||||||
FBGame.Instance.LoadScene(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void RegistControllers()
|
|
||||||
{
|
|
||||||
RegisterController(FBConsts.E_SceneEnter, typeof(FBSceneEnterController));
|
|
||||||
RegisterController(FBConsts.E_SceneExit, typeof(FBSceneExitController));
|
|
||||||
RegisterController(FBConsts.E_LevelStart, typeof(FBLevelStartController));
|
|
||||||
RegisterController(FBConsts.E_LevelEnd, typeof(FBLevelEndController));
|
|
||||||
RegisterController(FBConsts.E_CountDownComplete, typeof(FBCountDownCompleteController));
|
|
||||||
|
|
||||||
RegisterController(FBConsts.E_UpgradeTower, typeof(FBUpgradeTowerCommand));
|
|
||||||
RegisterController(FBConsts.E_SellTower, typeof(FBSellTowerCommand));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: d3f53d26eb8b25e43a36deefc7f97f97
|
|
||||||
timeCreated: 1537926132
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,34 +0,0 @@
|
|||||||
// Felix-Bang:FBUpgradeTowerCommand
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:
|
|
||||||
// Createtime:
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
using FBFramework;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUpgradeTowerCommand : FBController
|
|
||||||
{
|
|
||||||
public override void Execute(object data = null)
|
|
||||||
{
|
|
||||||
FBUpgradeTowerArgs e = data as FBUpgradeTowerArgs;
|
|
||||||
FBTower tower = e.Tower;
|
|
||||||
tower.Level++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: bbc5a087b898fae428606a48e3949dc5
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,10 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e55195e32235941468ccb3ebd7eb8497
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1537343502
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,35 +0,0 @@
|
|||||||
// Felix-Bang:FBEndLevelArgs
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:结束关卡的事件参数
|
|
||||||
// Createtime:2018/9/27
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBEndLevelArgs
|
|
||||||
{
|
|
||||||
/// <summary> 关卡索引 </summary>
|
|
||||||
public int ID { get; set; }
|
|
||||||
/// <summary>
|
|
||||||
/// 结束类型:闯关成功(true)/失败(false)
|
|
||||||
/// </summary>
|
|
||||||
public bool IsWin;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: b774511cc1aa7ea4d8f92db739e5bfe6
|
|
||||||
timeCreated: 1537924608
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,37 +0,0 @@
|
|||||||
// Felix-Bang:FBRoundStartArgs
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:回合参数
|
|
||||||
// Createtime:2018/10/12
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBRoundStartArgs
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
/// <summary> 当前回合索引 </summary>
|
|
||||||
public int RoundIndex;
|
|
||||||
/// <summary> 总回合数 </summary>
|
|
||||||
public int RoundTotal;
|
|
||||||
/// <summary> 回合提示 </summary>
|
|
||||||
public int RoundTips;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 97a0b76d6a1d87e4c8c8c0abbfd6cc2a
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,31 +0,0 @@
|
|||||||
// Felix-Bang:FBSceneArgs
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:场景相关的事件参数
|
|
||||||
// Createtime:2018/9/26
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBSceneArgs
|
|
||||||
{
|
|
||||||
//场景索引
|
|
||||||
public int Index;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: b2475cb4ae7dcd64baf2bcdc3cbd010d
|
|
||||||
timeCreated: 1537924608
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,30 +0,0 @@
|
|||||||
// Felix-Bang:FBSellTowerArgs
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:出售炮塔参数
|
|
||||||
// Createtime:2018/10/17
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBSellTowerArgs
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
public FBTower Tower;
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: cf5022df92f09394bbed786d3d8c85ae
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,29 +0,0 @@
|
|||||||
// Felix-Bang:FBShowTowerCreatArgs
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:显示创建炮塔参数
|
|
||||||
// Createtime:2018/10/16
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBShowTowerCreatArgs
|
|
||||||
{
|
|
||||||
public Vector3 Position;
|
|
||||||
public bool UpSide;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: e8c483a1a9c6c8a4a8ab316a97f0510b
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,28 +0,0 @@
|
|||||||
// Felix-Bang:FBTowerUpgradeArgs
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:显示炮塔升级参数
|
|
||||||
// Createtime:2018/10/16
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBShowTowerUpgradeArgs
|
|
||||||
{
|
|
||||||
public FBTower Tower;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 21ea3f965fd911c4e83e63c467eada6d
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,34 +0,0 @@
|
|||||||
// Felix-Bang:FBSpawnMonsterArgs
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:出怪参数
|
|
||||||
// Createtime:2018/10/12
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBSpawnMonsterArgs
|
|
||||||
{
|
|
||||||
|
|
||||||
#region 字段
|
|
||||||
/// <summary> 怪物类型 </summary>
|
|
||||||
public int MonsterID;
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: fc91c3604de832e40ac40fe51200049c
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,31 +0,0 @@
|
|||||||
// Felix-Bang:FBSpawnTowerArgs
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:产生炮塔参数
|
|
||||||
// Createtime:2018/10/17
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBSpawnTowerArgs
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
public Vector3 Position;
|
|
||||||
public int TowerID;
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: b6f89ad13c00f354ca1589c18cb0de4a
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,31 +0,0 @@
|
|||||||
// Felix-Bang:FBStartLevelArgs
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:开始关卡的事件参数
|
|
||||||
// Createtime:2018/9/27
|
|
||||||
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBStartLevelArgs
|
|
||||||
{
|
|
||||||
/// <summary> 关卡ID </summary>
|
|
||||||
public int ID { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 2fa0a3a6535d2784fa3a03a488d37d22
|
|
||||||
timeCreated: 1537924608
|
|
||||||
licenseType: Pro
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,30 +0,0 @@
|
|||||||
// Felix-Bang:FBUpgradeTowerArgs
|
|
||||||
// へ /|
|
|
||||||
// /\7 ∠_/
|
|
||||||
// / │ / /
|
|
||||||
// │ Z _,< / /`ヽ
|
|
||||||
// │ ヽ / 〉
|
|
||||||
// Y ` / /
|
|
||||||
// イ● 、 ● ⊂⊃〈 /
|
|
||||||
// () へ | \〈
|
|
||||||
// >ー 、_ ィ │ //
|
|
||||||
// / へ / ノ<| \\
|
|
||||||
// ヽ_ノ (_/ │//
|
|
||||||
// 7 |/
|
|
||||||
// >―r ̄ ̄`ー―_
|
|
||||||
// Describe:升级炮塔参数
|
|
||||||
// Createtime:2018/10/17
|
|
||||||
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace FBApplication
|
|
||||||
{
|
|
||||||
public class FBUpgradeTowerArgs
|
|
||||||
{
|
|
||||||
#region 字段
|
|
||||||
public FBTower Tower;
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: aa75fc30d31386447814018be527b88d
|
|
||||||
MonoImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
serializedVersion: 2
|
|
||||||
defaultReferences: []
|
|
||||||
executionOrder: 0
|
|
||||||
icon: {instanceID: 0}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
@ -1,10 +0,0 @@
|
|||||||
fileFormatVersion: 2
|
|
||||||
guid: 092a315504f29ae4d9063ae8b9d87778
|
|
||||||
folderAsset: yes
|
|
||||||
timeCreated: 1537343558
|
|
||||||
licenseType: Pro
|
|
||||||
DefaultImporter:
|
|
||||||
externalObjects: {}
|
|
||||||
userData:
|
|
||||||
assetBundleName:
|
|
||||||
assetBundleVariant:
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user