first commit
This commit is contained in:
+77
@@ -0,0 +1,77 @@
|
|||||||
|
# Unity generated folders
|
||||||
|
/Library/
|
||||||
|
/Temp/
|
||||||
|
/Obj/
|
||||||
|
/Build/
|
||||||
|
/Builds/
|
||||||
|
/Logs/
|
||||||
|
/UserSettings/
|
||||||
|
/MemoryCaptures/
|
||||||
|
/Recordings/
|
||||||
|
|
||||||
|
# Unity cache and generated data
|
||||||
|
/Assets/AssetStoreTools*
|
||||||
|
/sysinfo.txt
|
||||||
|
*.pidb
|
||||||
|
*.booproj
|
||||||
|
*.svd
|
||||||
|
*.pdb
|
||||||
|
*.mdb
|
||||||
|
*.opendb
|
||||||
|
*.VC.db
|
||||||
|
|
||||||
|
# Unity generated solution/project files
|
||||||
|
/*.csproj
|
||||||
|
/*.unityproj
|
||||||
|
/*.sln
|
||||||
|
/*.suo
|
||||||
|
/*.tmp
|
||||||
|
/*.user
|
||||||
|
/*.userprefs
|
||||||
|
/*.pidb
|
||||||
|
/*.booproj
|
||||||
|
/*.svd
|
||||||
|
/*.pdb
|
||||||
|
/*.mdb
|
||||||
|
/*.opendb
|
||||||
|
/*.VC.db
|
||||||
|
|
||||||
|
# IDE/editor local files
|
||||||
|
/.vs/
|
||||||
|
/.vscode/
|
||||||
|
/.idea/
|
||||||
|
/.consulo/
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
*~
|
||||||
|
|
||||||
|
# OS files
|
||||||
|
.DS_Store
|
||||||
|
Thumbs.db
|
||||||
|
Desktop.ini
|
||||||
|
|
||||||
|
# Build artifacts
|
||||||
|
*.apk
|
||||||
|
*.aab
|
||||||
|
*.unitypackage
|
||||||
|
*.app
|
||||||
|
*.exe
|
||||||
|
*.x86
|
||||||
|
*.x86_64
|
||||||
|
*.wasm
|
||||||
|
*.symbols.zip
|
||||||
|
|
||||||
|
# Crash and profiling artifacts
|
||||||
|
crashlytics-build.properties
|
||||||
|
*.stackdump
|
||||||
|
|
||||||
|
# Local Codex/agent workspace metadata
|
||||||
|
/.agents/
|
||||||
|
/.codex/
|
||||||
|
|
||||||
|
# Lab reports and office temporary files
|
||||||
|
*.docx
|
||||||
|
~$*.docx
|
||||||
|
.~lock.*#
|
||||||
|
.xdp-*
|
||||||
|
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b7f79c7eb8b010b498f627586b7aba1b
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,860 @@
|
|||||||
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
|
using OTG.Lab06.Abilities;
|
||||||
|
using OTG.Lab06.Characters;
|
||||||
|
using OTG.Lab06.Combat;
|
||||||
|
using OTG.Lab06.Effects;
|
||||||
|
using OTG.Lab06.UI;
|
||||||
|
using UnityEditor;
|
||||||
|
using UnityEditor.SceneManagement;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.EventSystems;
|
||||||
|
using UnityEngine.SceneManagement;
|
||||||
|
using UnityEngine.UI;
|
||||||
|
|
||||||
|
public static class Lab6SceneBuilder
|
||||||
|
{
|
||||||
|
private const string Root = "Assets";
|
||||||
|
private const string ScenePath = "Assets/_Scenes/Lab06_AbilitySystem.unity";
|
||||||
|
private const string FontFilePath = "Assets/_Fonts/Ubuntu-R.ttf";
|
||||||
|
|
||||||
|
[MenuItem("Tools/Technical Game Design/Lab6/Create Ability System Scene")]
|
||||||
|
public static void CreateAbilitySystemScene()
|
||||||
|
{
|
||||||
|
CreateProjectStructure();
|
||||||
|
Font font = CopyUbuntuFont();
|
||||||
|
Dictionary<string, Material> materials = CreateMaterials();
|
||||||
|
Dictionary<string, Sprite> icons = CreateIcons();
|
||||||
|
|
||||||
|
GameObject deathEffect = CreateDeathEffectPrefab(materials["ArcaneViolet"]);
|
||||||
|
FloatingDamage floatingDamage = CreateFloatingDamagePrefab(font);
|
||||||
|
GameObject fireballEffect = CreateFireballPrefab(materials["Fire"], materials["FireTrail"]);
|
||||||
|
GameObject iceNovaEffect = CreateIceNovaPrefab(materials["Ice"]);
|
||||||
|
GameObject blinkEffect = CreateBlinkPrefab(materials["Blink"]);
|
||||||
|
|
||||||
|
AbilityData fireball = CreateAbility("Fireball", "fireball", "Launches a burning projectile that detonates on the first enemy hit.", 8f, 2f, 30f, 24f, icons["Fireball"], fireballEffect);
|
||||||
|
AbilityData iceNova = CreateAbility("Ice Nova", "ice_nova", "Releases a sharp frost ring that damages all nearby enemies.", 14f, 5f, 20f, 5.5f, icons["IceNova"], iceNovaEffect);
|
||||||
|
AbilityData blink = CreateAbility("Blink", "blink", "Teleports forward and stops safely before obstacles.", 10f, 6f, 0f, 8f, icons["Blink"], blinkEffect);
|
||||||
|
|
||||||
|
GameObject enemyPrefab = CreateEnemyPrefab(materials["Enemy"], deathEffect);
|
||||||
|
GameObject crystalPrefab = CreateManaCrystalPrefab(materials["ManaCrystal"]);
|
||||||
|
AbilitySlotUI slotPrefab = CreateAbilitySlotPrefab(font, materials);
|
||||||
|
|
||||||
|
Scene scene = EditorSceneManager.NewScene(NewSceneSetup.EmptyScene, NewSceneMode.Single);
|
||||||
|
scene.name = "Lab06_AbilitySystem";
|
||||||
|
|
||||||
|
BuildLighting();
|
||||||
|
BuildArena(materials);
|
||||||
|
GameObject player = BuildPlayer(materials, fireball, iceNova, blink);
|
||||||
|
BuildCamera(player.transform);
|
||||||
|
BuildEnemies(enemyPrefab);
|
||||||
|
BuildTrainingMannequins(materials);
|
||||||
|
BuildManaCrystals(crystalPrefab);
|
||||||
|
BuildFloatingDamageManager(floatingDamage);
|
||||||
|
BuildUI(player, slotPrefab, font, materials);
|
||||||
|
|
||||||
|
EditorSceneManager.SaveScene(scene, ScenePath);
|
||||||
|
AssetDatabase.SaveAssets();
|
||||||
|
AssetDatabase.Refresh();
|
||||||
|
EditorUtility.DisplayDialog("Lab06", "Ability System scene has been generated.", "OK");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void CreateProjectStructure()
|
||||||
|
{
|
||||||
|
string[] folders =
|
||||||
|
{
|
||||||
|
"_Scenes", "_Scripts", "_Scripts/Core", "_Scripts/Abilities", "_Scripts/Combat",
|
||||||
|
"_Scripts/Characters", "_Scripts/UI", "_Scripts/Effects", "_Data", "_Data/Abilities",
|
||||||
|
"_Prefabs", "_Prefabs/Abilities", "_Prefabs/UI", "_Prefabs/Enemies", "_Materials", "_Fonts", "Editor"
|
||||||
|
};
|
||||||
|
|
||||||
|
foreach (string folder in folders)
|
||||||
|
{
|
||||||
|
string path = $"{Root}/{folder}";
|
||||||
|
if (!AssetDatabase.IsValidFolder(path))
|
||||||
|
{
|
||||||
|
string parent = Path.GetDirectoryName(path).Replace('\\', '/');
|
||||||
|
string name = Path.GetFileName(path);
|
||||||
|
AssetDatabase.CreateFolder(parent, name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Font CopyUbuntuFont()
|
||||||
|
{
|
||||||
|
string[] candidates =
|
||||||
|
{
|
||||||
|
"/usr/share/fonts/truetype/ubuntu/Ubuntu-R.ttf",
|
||||||
|
"/usr/share/fonts/truetype/ubuntu/Ubuntu-M.ttf",
|
||||||
|
"/usr/share/fonts/TTF/Ubuntu-R.ttf"
|
||||||
|
};
|
||||||
|
|
||||||
|
string source = null;
|
||||||
|
foreach (string candidate in candidates)
|
||||||
|
{
|
||||||
|
if (File.Exists(candidate))
|
||||||
|
{
|
||||||
|
source = candidate;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (source == null)
|
||||||
|
{
|
||||||
|
throw new FileNotFoundException("Ubuntu font was not found in standard Linux font directories.");
|
||||||
|
}
|
||||||
|
|
||||||
|
File.Copy(source, FontFilePath, true);
|
||||||
|
AssetDatabase.ImportAsset(FontFilePath, ImportAssetOptions.ForceUpdate);
|
||||||
|
AssetDatabase.Refresh(ImportAssetOptions.ForceSynchronousImport);
|
||||||
|
|
||||||
|
Font font = AssetDatabase.LoadAssetAtPath<Font>(FontFilePath);
|
||||||
|
if (font == null)
|
||||||
|
{
|
||||||
|
throw new FileNotFoundException("Ubuntu font was copied but Unity could not import it as a Font asset.");
|
||||||
|
}
|
||||||
|
return font;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Dictionary<string, Material> CreateMaterials()
|
||||||
|
{
|
||||||
|
var result = new Dictionary<string, Material>
|
||||||
|
{
|
||||||
|
["ArenaFloor"] = CreateMaterial("ArenaFloor", new Color(0.48f, 0.49f, 0.46f), 0.08f),
|
||||||
|
["ArenaTrim"] = CreateMaterial("ArenaTrim", new Color(0.34f, 0.36f, 0.36f), 0.06f),
|
||||||
|
["ArenaWall"] = CreateMaterial("ArenaWall", new Color(0.42f, 0.43f, 0.41f), 0.05f),
|
||||||
|
["ArenaLine"] = CreateMaterial("ArenaLine", new Color(0.58f, 0.60f, 0.57f), 0.03f),
|
||||||
|
["Player"] = CreateMaterial("Player", new Color(0.12f, 0.39f, 0.82f), 0.25f),
|
||||||
|
["Enemy"] = CreateMaterial("Enemy", new Color(0.58f, 0.08f, 0.12f), 0.16f),
|
||||||
|
["Mannequin"] = CreateMaterial("Mannequin", new Color(0.56f, 0.43f, 0.28f), 0.05f),
|
||||||
|
["Fire"] = CreateMaterial("Fire", new Color(1f, 0.32f, 0.08f), 0.4f, new Color(2.2f, 0.55f, 0.08f)),
|
||||||
|
["FireTrail"] = CreateMaterial("FireTrail", new Color(1f, 0.68f, 0.12f, 0.55f), 0.15f, new Color(1.3f, 0.55f, 0.12f)),
|
||||||
|
["Ice"] = CreateMaterial("Ice", new Color(0.42f, 0.85f, 1f, 0.62f), 0.25f, new Color(0.2f, 0.9f, 1.7f)),
|
||||||
|
["Blink"] = CreateMaterial("Blink", new Color(0.52f, 0.48f, 1f, 0.66f), 0.3f, new Color(0.75f, 0.55f, 2.1f)),
|
||||||
|
["ManaCrystal"] = CreateMaterial("ManaCrystal", new Color(0.18f, 0.9f, 0.95f), 0.45f, new Color(0.05f, 1.4f, 1.8f)),
|
||||||
|
["ArcaneViolet"] = CreateMaterial("ArcaneViolet", new Color(0.58f, 0.23f, 0.86f), 0.35f, new Color(0.8f, 0.2f, 1.4f)),
|
||||||
|
["UIBack"] = CreateMaterial("UIBack", new Color(0.07f, 0.08f, 0.09f, 0.88f), 0f),
|
||||||
|
};
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Material CreateMaterial(string name, Color color, float smoothness, Color? emission = null)
|
||||||
|
{
|
||||||
|
string path = $"Assets/_Materials/{name}.mat";
|
||||||
|
Material material = AssetDatabase.LoadAssetAtPath<Material>(path);
|
||||||
|
if (material == null)
|
||||||
|
{
|
||||||
|
material = new Material(Shader.Find("Standard"));
|
||||||
|
AssetDatabase.CreateAsset(material, path);
|
||||||
|
}
|
||||||
|
|
||||||
|
material.color = color;
|
||||||
|
material.SetFloat("_Glossiness", smoothness);
|
||||||
|
if (emission.HasValue)
|
||||||
|
{
|
||||||
|
material.EnableKeyword("_EMISSION");
|
||||||
|
material.SetColor("_EmissionColor", emission.Value);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
material.DisableKeyword("_EMISSION");
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorUtility.SetDirty(material);
|
||||||
|
return material;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Dictionary<string, Sprite> CreateIcons()
|
||||||
|
{
|
||||||
|
return new Dictionary<string, Sprite>
|
||||||
|
{
|
||||||
|
["Fireball"] = CreateIcon("FireballIcon", new Color(0.95f, 0.22f, 0.07f), new Color(1f, 0.75f, 0.15f)),
|
||||||
|
["IceNova"] = CreateIcon("IceNovaIcon", new Color(0.1f, 0.55f, 0.95f), new Color(0.78f, 0.96f, 1f)),
|
||||||
|
["Blink"] = CreateIcon("BlinkIcon", new Color(0.35f, 0.2f, 0.85f), new Color(0.85f, 0.78f, 1f))
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Sprite CreateIcon(string name, Color baseColor, Color markColor)
|
||||||
|
{
|
||||||
|
string pngPath = $"Assets/_Data/Abilities/{name}.png";
|
||||||
|
Texture2D texture = new Texture2D(64, 64, TextureFormat.RGBA32, false);
|
||||||
|
for (int y = 0; y < 64; y++)
|
||||||
|
{
|
||||||
|
for (int x = 0; x < 64; x++)
|
||||||
|
{
|
||||||
|
Vector2 p = new Vector2(x - 31.5f, y - 31.5f);
|
||||||
|
float ring = Mathf.InverseLerp(32f, 12f, p.magnitude);
|
||||||
|
Color color = Color.Lerp(new Color(0.04f, 0.05f, 0.06f, 1f), baseColor, Mathf.Clamp01(ring));
|
||||||
|
if (Mathf.Abs(p.x) < 5f || Mathf.Abs(p.y) < 5f || p.magnitude < 12f)
|
||||||
|
{
|
||||||
|
color = Color.Lerp(color, markColor, 0.75f);
|
||||||
|
}
|
||||||
|
texture.SetPixel(x, y, color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
texture.Apply();
|
||||||
|
File.WriteAllBytes(pngPath, texture.EncodeToPNG());
|
||||||
|
Object.DestroyImmediate(texture);
|
||||||
|
AssetDatabase.ImportAsset(pngPath, ImportAssetOptions.ForceUpdate);
|
||||||
|
|
||||||
|
TextureImporter importer = (TextureImporter)AssetImporter.GetAtPath(pngPath);
|
||||||
|
importer.textureType = TextureImporterType.Sprite;
|
||||||
|
importer.spritePixelsPerUnit = 64f;
|
||||||
|
importer.mipmapEnabled = false;
|
||||||
|
importer.SaveAndReimport();
|
||||||
|
return AssetDatabase.LoadAssetAtPath<Sprite>(pngPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static AbilityData CreateAbility(string displayName, string id, string description, float mana, float cooldown, float damage, float range, Sprite icon, GameObject effectPrefab)
|
||||||
|
{
|
||||||
|
string path = $"Assets/_Data/Abilities/{displayName.Replace(" ", string.Empty)}.asset";
|
||||||
|
AbilityData data = AssetDatabase.LoadAssetAtPath<AbilityData>(path);
|
||||||
|
if (data == null)
|
||||||
|
{
|
||||||
|
data = ScriptableObject.CreateInstance<AbilityData>();
|
||||||
|
AssetDatabase.CreateAsset(data, path);
|
||||||
|
}
|
||||||
|
|
||||||
|
data.abilityId = id;
|
||||||
|
data.abilityName = displayName;
|
||||||
|
data.description = description;
|
||||||
|
data.icon = icon;
|
||||||
|
data.manaCost = mana;
|
||||||
|
data.cooldown = cooldown;
|
||||||
|
data.damage = damage;
|
||||||
|
data.castRange = range;
|
||||||
|
data.effectPrefab = effectPrefab;
|
||||||
|
EditorUtility.SetDirty(data);
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static GameObject CreateFireballPrefab(Material fire, Material trail)
|
||||||
|
{
|
||||||
|
GameObject root = new GameObject("PF_FireballEffect");
|
||||||
|
var collider = root.AddComponent<SphereCollider>();
|
||||||
|
collider.radius = 0.35f;
|
||||||
|
collider.isTrigger = true;
|
||||||
|
root.AddComponent<FireballEffect>();
|
||||||
|
|
||||||
|
GameObject visual = GameObject.CreatePrimitive(PrimitiveType.Sphere);
|
||||||
|
visual.name = "Fireball_Visual";
|
||||||
|
visual.transform.SetParent(root.transform, false);
|
||||||
|
visual.transform.localScale = Vector3.one * 0.55f;
|
||||||
|
Object.DestroyImmediate(visual.GetComponent<Collider>());
|
||||||
|
visual.GetComponent<Renderer>().sharedMaterial = fire;
|
||||||
|
|
||||||
|
ParticleSystem particles = root.AddComponent<ParticleSystem>();
|
||||||
|
ParticleSystem.MainModule main = particles.main;
|
||||||
|
main.startLifetime = 0.35f;
|
||||||
|
main.startSpeed = 0.2f;
|
||||||
|
main.startSize = 0.32f;
|
||||||
|
main.startColor = new Color(1f, 0.42f, 0.05f, 0.7f);
|
||||||
|
ParticleSystem.EmissionModule emission = particles.emission;
|
||||||
|
emission.rateOverTime = 34f;
|
||||||
|
ParticleSystemRenderer renderer = particles.GetComponent<ParticleSystemRenderer>();
|
||||||
|
renderer.sharedMaterial = trail;
|
||||||
|
|
||||||
|
return SavePrefab(root, "Assets/_Prefabs/Abilities/PF_FireballEffect.prefab");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static GameObject CreateIceNovaPrefab(Material material)
|
||||||
|
{
|
||||||
|
GameObject root = new GameObject("PF_IceNovaEffect");
|
||||||
|
root.AddComponent<IceNovaEffect>();
|
||||||
|
|
||||||
|
GameObject ring = GameObject.CreatePrimitive(PrimitiveType.Cylinder);
|
||||||
|
ring.name = "IceNova_Ring";
|
||||||
|
ring.transform.SetParent(root.transform, false);
|
||||||
|
ring.transform.localScale = new Vector3(5.5f, 0.035f, 5.5f);
|
||||||
|
Object.DestroyImmediate(ring.GetComponent<Collider>());
|
||||||
|
ring.GetComponent<Renderer>().sharedMaterial = material;
|
||||||
|
|
||||||
|
ParticleSystem particles = root.AddComponent<ParticleSystem>();
|
||||||
|
ParticleSystem.MainModule main = particles.main;
|
||||||
|
main.startLifetime = 0.7f;
|
||||||
|
main.startSpeed = 2.1f;
|
||||||
|
main.startSize = 0.18f;
|
||||||
|
main.startColor = new Color(0.55f, 0.9f, 1f, 0.75f);
|
||||||
|
ParticleSystem.ShapeModule shape = particles.shape;
|
||||||
|
shape.shapeType = ParticleSystemShapeType.Circle;
|
||||||
|
shape.radius = 5.4f;
|
||||||
|
ParticleSystem.EmissionModule emission = particles.emission;
|
||||||
|
emission.rateOverTime = 90f;
|
||||||
|
|
||||||
|
return SavePrefab(root, "Assets/_Prefabs/Abilities/PF_IceNovaEffect.prefab");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static GameObject CreateBlinkPrefab(Material material)
|
||||||
|
{
|
||||||
|
GameObject root = new GameObject("PF_BlinkEffect");
|
||||||
|
root.AddComponent<BlinkEffect>();
|
||||||
|
|
||||||
|
GameObject burst = GameObject.CreatePrimitive(PrimitiveType.Cylinder);
|
||||||
|
burst.name = "Blink_Burst";
|
||||||
|
burst.transform.SetParent(root.transform, false);
|
||||||
|
burst.transform.localScale = new Vector3(1.25f, 0.05f, 1.25f);
|
||||||
|
Object.DestroyImmediate(burst.GetComponent<Collider>());
|
||||||
|
burst.GetComponent<Renderer>().sharedMaterial = material;
|
||||||
|
|
||||||
|
ParticleSystem particles = root.AddComponent<ParticleSystem>();
|
||||||
|
ParticleSystem.MainModule main = particles.main;
|
||||||
|
main.startLifetime = 0.45f;
|
||||||
|
main.startSpeed = 1.4f;
|
||||||
|
main.startSize = 0.22f;
|
||||||
|
main.startColor = new Color(0.65f, 0.55f, 1f, 0.8f);
|
||||||
|
ParticleSystem.EmissionModule emission = particles.emission;
|
||||||
|
emission.rateOverTime = 70f;
|
||||||
|
|
||||||
|
return SavePrefab(root, "Assets/_Prefabs/Abilities/PF_BlinkEffect.prefab");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static GameObject CreateDeathEffectPrefab(Material material)
|
||||||
|
{
|
||||||
|
GameObject root = new GameObject("PF_EnemyDeathEffect");
|
||||||
|
ParticleSystem particles = root.AddComponent<ParticleSystem>();
|
||||||
|
ParticleSystem.MainModule main = particles.main;
|
||||||
|
main.startLifetime = 0.65f;
|
||||||
|
main.startSpeed = 1.8f;
|
||||||
|
main.startSize = 0.22f;
|
||||||
|
main.duration = 0.5f;
|
||||||
|
main.loop = false;
|
||||||
|
main.startColor = new Color(0.65f, 0.2f, 1f, 0.85f);
|
||||||
|
ParticleSystem.EmissionModule emission = particles.emission;
|
||||||
|
emission.rateOverTime = 0f;
|
||||||
|
emission.SetBursts(new[] { new ParticleSystem.Burst(0f, 34) });
|
||||||
|
particles.GetComponent<ParticleSystemRenderer>().sharedMaterial = material;
|
||||||
|
var destroy = root.AddComponent<SelfDestruct>();
|
||||||
|
SetFloat(destroy, "lifetime", 1.2f);
|
||||||
|
return SavePrefab(root, "Assets/_Prefabs/Abilities/PF_EnemyDeathEffect.prefab");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static FloatingDamage CreateFloatingDamagePrefab(Font font)
|
||||||
|
{
|
||||||
|
GameObject root = new GameObject("PF_FloatingDamage");
|
||||||
|
Canvas canvas = root.AddComponent<Canvas>();
|
||||||
|
canvas.renderMode = RenderMode.WorldSpace;
|
||||||
|
RectTransform canvasRect = root.GetComponent<RectTransform>();
|
||||||
|
canvasRect.sizeDelta = new Vector2(120f, 48f);
|
||||||
|
canvasRect.localScale = Vector3.one * 0.01f;
|
||||||
|
|
||||||
|
GameObject labelObject = new GameObject("DamageLabel", typeof(RectTransform));
|
||||||
|
labelObject.transform.SetParent(root.transform, false);
|
||||||
|
Text label = labelObject.AddComponent<Text>();
|
||||||
|
label.font = font;
|
||||||
|
label.fontSize = 38;
|
||||||
|
label.alignment = TextAnchor.MiddleCenter;
|
||||||
|
label.color = new Color(1f, 0.86f, 0.28f, 1f);
|
||||||
|
Stretch(label.rectTransform);
|
||||||
|
|
||||||
|
FloatingDamage damage = root.AddComponent<FloatingDamage>();
|
||||||
|
SetObject(damage, "label", label);
|
||||||
|
GameObject prefab = SavePrefab(root, "Assets/_Prefabs/UI/PF_FloatingDamage.prefab");
|
||||||
|
return prefab.GetComponent<FloatingDamage>();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static GameObject CreateEnemyPrefab(Material enemyMaterial, GameObject deathEffect)
|
||||||
|
{
|
||||||
|
GameObject root = GameObject.CreatePrimitive(PrimitiveType.Capsule);
|
||||||
|
root.name = "PF_Enemy";
|
||||||
|
root.transform.localScale = new Vector3(1f, 1.35f, 1f);
|
||||||
|
root.GetComponent<Renderer>().sharedMaterial = enemyMaterial;
|
||||||
|
CapsuleCollider hitbox = root.GetComponent<CapsuleCollider>();
|
||||||
|
hitbox.radius = 0.85f;
|
||||||
|
hitbox.height = 2.4f;
|
||||||
|
Enemy enemy = root.AddComponent<Enemy>();
|
||||||
|
SetObject(enemy, "deathEffectPrefab", deathEffect);
|
||||||
|
return SavePrefab(root, "Assets/_Prefabs/Enemies/PF_Enemy.prefab");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static GameObject CreateManaCrystalPrefab(Material material)
|
||||||
|
{
|
||||||
|
GameObject root = new GameObject("PF_ManaCrystal");
|
||||||
|
SphereCollider trigger = root.AddComponent<SphereCollider>();
|
||||||
|
trigger.isTrigger = true;
|
||||||
|
trigger.radius = 1.2f;
|
||||||
|
|
||||||
|
GameObject visual = GameObject.CreatePrimitive(PrimitiveType.Sphere);
|
||||||
|
visual.name = "CrystalVisual";
|
||||||
|
visual.transform.SetParent(root.transform, false);
|
||||||
|
visual.transform.localPosition = Vector3.up * 0.8f;
|
||||||
|
visual.transform.localScale = new Vector3(0.65f, 1.25f, 0.65f);
|
||||||
|
Object.DestroyImmediate(visual.GetComponent<Collider>());
|
||||||
|
visual.GetComponent<Renderer>().sharedMaterial = material;
|
||||||
|
|
||||||
|
ManaCrystal crystal = root.AddComponent<ManaCrystal>();
|
||||||
|
SetObject(crystal, "visualRoot", visual);
|
||||||
|
return SavePrefab(root, "Assets/_Prefabs/Abilities/PF_ManaCrystal.prefab");
|
||||||
|
}
|
||||||
|
|
||||||
|
private static AbilitySlotUI CreateAbilitySlotPrefab(Font font, Dictionary<string, Material> materials)
|
||||||
|
{
|
||||||
|
GameObject root = CreateUIObject("PF_AbilitySlot", null, new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(76f, 76f), Vector2.zero);
|
||||||
|
Image back = root.AddComponent<Image>();
|
||||||
|
back.color = new Color(0.045f, 0.05f, 0.055f, 0.9f);
|
||||||
|
|
||||||
|
GameObject iconObject = CreateUIObject("Icon", root.transform, Vector2.zero, Vector2.one, new Vector2(0.5f, 0.5f), new Vector2(-14f, -22f), new Vector2(0f, 8f));
|
||||||
|
Image icon = iconObject.AddComponent<Image>();
|
||||||
|
icon.preserveAspect = true;
|
||||||
|
icon.raycastTarget = false;
|
||||||
|
|
||||||
|
GameObject overlayObject = CreateUIObject("CooldownOverlay", root.transform, Vector2.zero, Vector2.one, new Vector2(0.5f, 0.5f), new Vector2(-14f, -22f), new Vector2(0f, 8f));
|
||||||
|
Image overlay = overlayObject.AddComponent<Image>();
|
||||||
|
overlay.color = new Color(0f, 0f, 0f, 0.68f);
|
||||||
|
overlay.type = Image.Type.Filled;
|
||||||
|
overlay.fillMethod = Image.FillMethod.Radial360;
|
||||||
|
overlay.fillOrigin = 2;
|
||||||
|
overlay.raycastTarget = false;
|
||||||
|
|
||||||
|
Text key = CreateText("Hotkey", root.transform, font, "1", 18, TextAnchor.MiddleCenter, new Color(0.95f, 0.95f, 0.95f, 1f));
|
||||||
|
Anchor(key.rectTransform, new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(0f, 1f), new Vector2(22f, 22f), new Vector2(9f, -8f));
|
||||||
|
|
||||||
|
Text name = CreateText("Name", root.transform, font, "Fireball", 11, TextAnchor.MiddleCenter, new Color(0.88f, 0.91f, 0.94f, 1f));
|
||||||
|
Anchor(name.rectTransform, new Vector2(0f, 0f), new Vector2(1f, 0f), new Vector2(0.5f, 0f), new Vector2(-8f, 18f), new Vector2(0f, 10f));
|
||||||
|
|
||||||
|
Text mana = CreateText("Mana", root.transform, font, "15", 13, TextAnchor.MiddleRight, new Color(0.43f, 0.9f, 1f, 1f));
|
||||||
|
Anchor(mana.rectTransform, new Vector2(1f, 1f), new Vector2(1f, 1f), new Vector2(1f, 1f), new Vector2(34f, 20f), new Vector2(-7f, -8f));
|
||||||
|
|
||||||
|
Text cooldown = CreateText("Cooldown", root.transform, font, "", 20, TextAnchor.MiddleCenter, Color.white);
|
||||||
|
Stretch(cooldown.rectTransform);
|
||||||
|
|
||||||
|
AbilitySlotUI slot = root.AddComponent<AbilitySlotUI>();
|
||||||
|
SetObject(slot, "icon", icon);
|
||||||
|
SetObject(slot, "cooldownOverlay", overlay);
|
||||||
|
SetObject(slot, "hotkeyLabel", key);
|
||||||
|
SetObject(slot, "nameLabel", name);
|
||||||
|
SetObject(slot, "manaLabel", mana);
|
||||||
|
SetObject(slot, "cooldownLabel", cooldown);
|
||||||
|
|
||||||
|
GameObject prefab = SavePrefab(root, "Assets/_Prefabs/UI/PF_AbilitySlot.prefab");
|
||||||
|
return prefab.GetComponent<AbilitySlotUI>();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void BuildLighting()
|
||||||
|
{
|
||||||
|
RenderSettings.ambientLight = new Color(0.38f, 0.39f, 0.40f);
|
||||||
|
RenderSettings.fog = true;
|
||||||
|
RenderSettings.fogColor = new Color(0.58f, 0.62f, 0.65f);
|
||||||
|
RenderSettings.fogMode = FogMode.Linear;
|
||||||
|
RenderSettings.fogStartDistance = 35f;
|
||||||
|
RenderSettings.fogEndDistance = 80f;
|
||||||
|
|
||||||
|
GameObject lightObject = new GameObject("Directional Light");
|
||||||
|
Light light = lightObject.AddComponent<Light>();
|
||||||
|
light.type = LightType.Directional;
|
||||||
|
light.intensity = 1.05f;
|
||||||
|
lightObject.transform.rotation = Quaternion.Euler(55f, -38f, 0f);
|
||||||
|
|
||||||
|
GameObject rimObject = new GameObject("Arena Arcane Fill Light");
|
||||||
|
Light rim = rimObject.AddComponent<Light>();
|
||||||
|
rim.type = LightType.Point;
|
||||||
|
rim.intensity = 3.2f;
|
||||||
|
rim.range = 28f;
|
||||||
|
rim.color = new Color(0.36f, 0.7f, 1f);
|
||||||
|
rimObject.transform.position = new Vector3(0f, 8f, -8f);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void BuildArena(Dictionary<string, Material> materials)
|
||||||
|
{
|
||||||
|
const float arenaSize = 52f;
|
||||||
|
const float half = arenaSize * 0.5f;
|
||||||
|
|
||||||
|
GameObject floor = GameObject.CreatePrimitive(PrimitiveType.Cube);
|
||||||
|
floor.name = "Flat Stone Arena Floor";
|
||||||
|
floor.transform.position = new Vector3(0f, -0.08f, 0f);
|
||||||
|
floor.transform.localScale = new Vector3(arenaSize, 0.16f, arenaSize);
|
||||||
|
floor.GetComponent<Renderer>().sharedMaterial = materials["ArenaFloor"];
|
||||||
|
|
||||||
|
CreateWall("North Wall", new Vector3(0f, 1.15f, half), new Vector3(arenaSize + 1.2f, 2.3f, 0.8f), materials["ArenaWall"]);
|
||||||
|
CreateWall("South Wall", new Vector3(0f, 1.15f, -half), new Vector3(arenaSize + 1.2f, 2.3f, 0.8f), materials["ArenaWall"]);
|
||||||
|
CreateWall("East Wall", new Vector3(half, 1.15f, 0f), new Vector3(0.8f, 2.3f, arenaSize + 1.2f), materials["ArenaWall"]);
|
||||||
|
CreateWall("West Wall", new Vector3(-half, 1.15f, 0f), new Vector3(0.8f, 2.3f, arenaSize + 1.2f), materials["ArenaWall"]);
|
||||||
|
|
||||||
|
for (int i = -2; i <= 2; i++)
|
||||||
|
{
|
||||||
|
if (i == 0)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateFloorLine($"Floor Guide X {i}", new Vector3(i * 8f, 0.012f, 0f), new Vector3(0.05f, 0.02f, arenaSize - 5f), materials["ArenaLine"]);
|
||||||
|
CreateFloorLine($"Floor Guide Z {i}", new Vector3(0f, 0.014f, i * 8f), new Vector3(arenaSize - 5f, 0.02f, 0.05f), materials["ArenaLine"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector3[] blockPositions =
|
||||||
|
{
|
||||||
|
new Vector3(-16f, 0.55f, -13f), new Vector3(16f, 0.55f, -13f),
|
||||||
|
new Vector3(-16f, 0.55f, 13f), new Vector3(16f, 0.55f, 13f),
|
||||||
|
new Vector3(-7f, 0.45f, 18f), new Vector3(7f, 0.45f, 18f)
|
||||||
|
};
|
||||||
|
|
||||||
|
Vector3[] blockScales =
|
||||||
|
{
|
||||||
|
new Vector3(4.5f, 1.1f, 2f), new Vector3(4.5f, 1.1f, 2f),
|
||||||
|
new Vector3(2f, 1.1f, 4.5f), new Vector3(2f, 1.1f, 4.5f),
|
||||||
|
new Vector3(3.2f, 0.9f, 2f), new Vector3(3.2f, 0.9f, 2f)
|
||||||
|
};
|
||||||
|
|
||||||
|
for (int i = 0; i < blockPositions.Length; i++)
|
||||||
|
{
|
||||||
|
CreateWall($"Arena Cover {i + 1:00}", blockPositions[i], blockScales[i], materials["ArenaTrim"]);
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector3[] columnPositions =
|
||||||
|
{
|
||||||
|
new Vector3(-22f, 1.7f, -22f), new Vector3(22f, 1.7f, -22f),
|
||||||
|
new Vector3(-22f, 1.7f, 22f), new Vector3(22f, 1.7f, 22f),
|
||||||
|
new Vector3(-22f, 1.7f, 0f), new Vector3(22f, 1.7f, 0f)
|
||||||
|
};
|
||||||
|
|
||||||
|
for (int i = 0; i < columnPositions.Length; i++)
|
||||||
|
{
|
||||||
|
GameObject pillar = GameObject.CreatePrimitive(PrimitiveType.Cylinder);
|
||||||
|
pillar.name = $"Stone Column {i + 1:00}";
|
||||||
|
pillar.transform.position = columnPositions[i];
|
||||||
|
pillar.transform.localScale = new Vector3(0.75f, 1.7f, 0.75f);
|
||||||
|
pillar.GetComponent<Renderer>().sharedMaterial = materials["ArenaWall"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void CreateWall(string name, Vector3 position, Vector3 scale, Material material)
|
||||||
|
{
|
||||||
|
GameObject wall = GameObject.CreatePrimitive(PrimitiveType.Cube);
|
||||||
|
wall.name = name;
|
||||||
|
wall.transform.position = position;
|
||||||
|
wall.transform.localScale = scale;
|
||||||
|
wall.GetComponent<Renderer>().sharedMaterial = material;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void CreateFloorLine(string name, Vector3 position, Vector3 scale, Material material)
|
||||||
|
{
|
||||||
|
GameObject line = GameObject.CreatePrimitive(PrimitiveType.Cube);
|
||||||
|
line.name = name;
|
||||||
|
line.transform.position = position;
|
||||||
|
line.transform.localScale = scale;
|
||||||
|
line.GetComponent<Renderer>().sharedMaterial = material;
|
||||||
|
Object.DestroyImmediate(line.GetComponent<Collider>());
|
||||||
|
}
|
||||||
|
|
||||||
|
private static GameObject BuildPlayer(Dictionary<string, Material> materials, params AbilityData[] abilities)
|
||||||
|
{
|
||||||
|
GameObject player = new GameObject("Player_Mage");
|
||||||
|
player.name = "Player_Mage";
|
||||||
|
player.transform.position = new Vector3(0f, 0f, -10f);
|
||||||
|
|
||||||
|
GameObject visual = GameObject.CreatePrimitive(PrimitiveType.Capsule);
|
||||||
|
visual.name = "Player_Visual";
|
||||||
|
visual.transform.SetParent(player.transform, false);
|
||||||
|
visual.transform.localPosition = Vector3.up;
|
||||||
|
visual.GetComponent<Renderer>().sharedMaterial = materials["Player"];
|
||||||
|
Object.DestroyImmediate(visual.GetComponent<CapsuleCollider>());
|
||||||
|
|
||||||
|
CharacterController controller = player.AddComponent<CharacterController>();
|
||||||
|
controller.height = 2f;
|
||||||
|
controller.radius = 0.42f;
|
||||||
|
controller.center = Vector3.up;
|
||||||
|
|
||||||
|
PlayerStats stats = player.AddComponent<PlayerStats>();
|
||||||
|
player.AddComponent<PlayerController>();
|
||||||
|
|
||||||
|
Transform castOrigin = new GameObject("CastOrigin").transform;
|
||||||
|
castOrigin.SetParent(player.transform, false);
|
||||||
|
castOrigin.localPosition = new Vector3(0f, 1.25f, 0.55f);
|
||||||
|
|
||||||
|
AbilityManager manager = player.AddComponent<AbilityManager>();
|
||||||
|
SetObject(manager, "playerStats", stats);
|
||||||
|
SetObject(manager, "castOrigin", castOrigin);
|
||||||
|
SetObjectArray(manager, "learnedAbilities", abilities);
|
||||||
|
return player;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void BuildCamera(Transform player)
|
||||||
|
{
|
||||||
|
GameObject cameraObject = new GameObject("Main Camera");
|
||||||
|
Camera camera = cameraObject.AddComponent<Camera>();
|
||||||
|
cameraObject.tag = "MainCamera";
|
||||||
|
camera.nearClipPlane = 0.05f;
|
||||||
|
camera.fieldOfView = 48f;
|
||||||
|
cameraObject.transform.position = player.position + new Vector3(0f, 11f, -9f);
|
||||||
|
cameraObject.transform.LookAt(player.position + Vector3.up * 1.3f);
|
||||||
|
ThirdPersonCamera follow = cameraObject.AddComponent<ThirdPersonCamera>();
|
||||||
|
follow.SetTarget(player);
|
||||||
|
SetFloat(follow, "mouseSensitivity", 1.8f);
|
||||||
|
SetFloat(follow, "smoothTime", 0.12f);
|
||||||
|
SetFloat(follow, "minPitch", 45f);
|
||||||
|
SetFloat(follow, "maxPitch", 60f);
|
||||||
|
SetFloat(follow, "initialPitch", 52f);
|
||||||
|
SetFloat(follow, "distance", 14f);
|
||||||
|
SetFloat(follow, "lookAhead", 3.5f);
|
||||||
|
SetFloat(follow, "targetHeight", 1.25f);
|
||||||
|
|
||||||
|
PlayerController controller = player.GetComponent<PlayerController>();
|
||||||
|
SetObject(controller, "cameraTransform", cameraObject.transform);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void BuildEnemies(GameObject enemyPrefab)
|
||||||
|
{
|
||||||
|
Vector3[] positions =
|
||||||
|
{
|
||||||
|
new Vector3(-15f, 1.35f, 8f), new Vector3(-7f, 1.35f, 14f), new Vector3(7f, 1.35f, 14f), new Vector3(15f, 1.35f, 8f),
|
||||||
|
new Vector3(-18f, 1.35f, -3f), new Vector3(18f, 1.35f, -3f), new Vector3(-9f, 1.35f, -18f), new Vector3(9f, 1.35f, -18f)
|
||||||
|
};
|
||||||
|
|
||||||
|
for (int i = 0; i < positions.Length; i++)
|
||||||
|
{
|
||||||
|
GameObject enemy = (GameObject)PrefabUtility.InstantiatePrefab(enemyPrefab);
|
||||||
|
enemy.name = $"Enemy_{i + 1:00}";
|
||||||
|
enemy.transform.position = positions[i];
|
||||||
|
enemy.transform.LookAt(new Vector3(0f, enemy.transform.position.y, -10f));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void BuildTrainingMannequins(Dictionary<string, Material> materials)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < 4; i++)
|
||||||
|
{
|
||||||
|
float x = -9f + i * 6f;
|
||||||
|
GameObject body = GameObject.CreatePrimitive(PrimitiveType.Capsule);
|
||||||
|
body.name = $"Training Mannequin_{i + 1:00}";
|
||||||
|
body.transform.position = new Vector3(x, 1.1f, 21f);
|
||||||
|
body.transform.localScale = new Vector3(0.75f, 1.1f, 0.75f);
|
||||||
|
body.GetComponent<Renderer>().sharedMaterial = materials["Mannequin"];
|
||||||
|
|
||||||
|
GameObject cross = GameObject.CreatePrimitive(PrimitiveType.Cube);
|
||||||
|
cross.name = "Practice Armature";
|
||||||
|
cross.transform.SetParent(body.transform, false);
|
||||||
|
cross.transform.localPosition = new Vector3(0f, 0.35f, 0f);
|
||||||
|
cross.transform.localScale = new Vector3(1.8f, 0.12f, 0.12f);
|
||||||
|
cross.GetComponent<Renderer>().sharedMaterial = materials["ArenaTrim"];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void BuildManaCrystals(GameObject crystalPrefab)
|
||||||
|
{
|
||||||
|
Vector3[] positions =
|
||||||
|
{
|
||||||
|
new Vector3(-21f, 0.1f, -12f),
|
||||||
|
new Vector3(21f, 0.1f, -12f),
|
||||||
|
new Vector3(-21f, 0.1f, 12f),
|
||||||
|
new Vector3(21f, 0.1f, 12f)
|
||||||
|
};
|
||||||
|
|
||||||
|
for (int i = 0; i < positions.Length; i++)
|
||||||
|
{
|
||||||
|
GameObject crystal = (GameObject)PrefabUtility.InstantiatePrefab(crystalPrefab);
|
||||||
|
crystal.name = $"Mana Crystal_{i + 1:00}";
|
||||||
|
crystal.transform.position = positions[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void BuildFloatingDamageManager(FloatingDamage prefab)
|
||||||
|
{
|
||||||
|
GameObject manager = new GameObject("FloatingDamageManager");
|
||||||
|
FloatingDamageManager damageManager = manager.AddComponent<FloatingDamageManager>();
|
||||||
|
SetObject(damageManager, "floatingDamagePrefab", prefab);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void BuildUI(GameObject player, AbilitySlotUI slotPrefab, Font font, Dictionary<string, Material> materials)
|
||||||
|
{
|
||||||
|
GameObject canvasObject = new GameObject("Gameplay UI", typeof(RectTransform));
|
||||||
|
Canvas canvas = canvasObject.AddComponent<Canvas>();
|
||||||
|
canvas.renderMode = RenderMode.ScreenSpaceOverlay;
|
||||||
|
CanvasScaler scaler = canvasObject.AddComponent<CanvasScaler>();
|
||||||
|
scaler.uiScaleMode = CanvasScaler.ScaleMode.ScaleWithScreenSize;
|
||||||
|
scaler.referenceResolution = new Vector2(1280f, 720f);
|
||||||
|
scaler.matchWidthOrHeight = 0.5f;
|
||||||
|
canvasObject.AddComponent<GraphicRaycaster>();
|
||||||
|
|
||||||
|
GameObject eventSystem = new GameObject("EventSystem");
|
||||||
|
eventSystem.AddComponent<EventSystem>();
|
||||||
|
eventSystem.AddComponent<StandaloneInputModule>();
|
||||||
|
|
||||||
|
TooltipUI tooltip = BuildTooltip(canvasObject.transform, font);
|
||||||
|
BuildResourcePanel(canvasObject.transform, player.GetComponent<PlayerStats>(), font, false, new Vector2(24f, 72f), new Color(0.78f, 0.16f, 0.17f, 1f));
|
||||||
|
BuildResourcePanel(canvasObject.transform, player.GetComponent<PlayerStats>(), font, true, new Vector2(24f, 34f), new Color(0.12f, 0.55f, 0.95f, 1f));
|
||||||
|
BuildAbilityBar(canvasObject.transform, player.GetComponent<AbilityManager>(), slotPrefab, tooltip, font);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void BuildAbilityBar(Transform canvas, AbilityManager manager, AbilitySlotUI slotPrefab, TooltipUI tooltip, Font font)
|
||||||
|
{
|
||||||
|
GameObject panel = CreateUIObject("Ability Bar", canvas, new Vector2(0.5f, 0f), new Vector2(0.5f, 0f), new Vector2(0.5f, 0f), new Vector2(318f, 92f), new Vector2(0f, 18f));
|
||||||
|
Image back = panel.AddComponent<Image>();
|
||||||
|
back.color = new Color(0.025f, 0.03f, 0.035f, 0.72f);
|
||||||
|
|
||||||
|
GameObject root = CreateUIObject("Slots", panel.transform, Vector2.zero, Vector2.one, new Vector2(0.5f, 0.5f), new Vector2(-20f, -16f), Vector2.zero);
|
||||||
|
HorizontalLayoutGroup layout = root.AddComponent<HorizontalLayoutGroup>();
|
||||||
|
layout.spacing = 10f;
|
||||||
|
layout.childAlignment = TextAnchor.MiddleCenter;
|
||||||
|
layout.childControlWidth = false;
|
||||||
|
layout.childControlHeight = false;
|
||||||
|
layout.childForceExpandWidth = false;
|
||||||
|
layout.childForceExpandHeight = false;
|
||||||
|
|
||||||
|
AbilityBarUI bar = panel.AddComponent<AbilityBarUI>();
|
||||||
|
SetObject(bar, "abilityManager", manager);
|
||||||
|
SetObject(bar, "slotPrefab", slotPrefab);
|
||||||
|
SetObject(bar, "slotRoot", root.transform);
|
||||||
|
SetObject(bar, "tooltip", tooltip);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void BuildResourcePanel(Transform canvas, PlayerStats stats, Font font, bool mana, Vector2 anchoredPosition, Color fillColor)
|
||||||
|
{
|
||||||
|
GameObject panel = CreateUIObject(mana ? "Mana Bar" : "HP Bar", canvas, Vector2.zero, Vector2.zero, Vector2.zero, new Vector2(226f, 28f), anchoredPosition);
|
||||||
|
Image back = panel.AddComponent<Image>();
|
||||||
|
back.color = new Color(0.025f, 0.03f, 0.035f, 0.74f);
|
||||||
|
|
||||||
|
Text name = CreateText(mana ? "Mana Label" : "HP Label", panel.transform, font, mana ? "Mana" : "HP", 13, TextAnchor.MiddleLeft, new Color(0.9f, 0.92f, 0.94f, 1f));
|
||||||
|
Anchor(name.rectTransform, new Vector2(0f, 0f), new Vector2(0f, 1f), new Vector2(0f, 0.5f), new Vector2(50f, 0f), new Vector2(10f, 0f));
|
||||||
|
|
||||||
|
GameObject fillBackObject = CreateUIObject("Track", panel.transform, Vector2.zero, Vector2.one, new Vector2(0.5f, 0.5f), new Vector2(-62f, -10f), new Vector2(26f, 0f));
|
||||||
|
Image fillBack = fillBackObject.AddComponent<Image>();
|
||||||
|
fillBack.color = new Color(0f, 0f, 0f, 0.28f);
|
||||||
|
|
||||||
|
GameObject fillObject = CreateUIObject("Fill", panel.transform, Vector2.zero, Vector2.one, new Vector2(0f, 0.5f), new Vector2(-62f, -10f), new Vector2(26f, 0f));
|
||||||
|
Image fill = fillObject.AddComponent<Image>();
|
||||||
|
fill.color = fillColor;
|
||||||
|
fill.type = Image.Type.Filled;
|
||||||
|
fill.fillMethod = Image.FillMethod.Horizontal;
|
||||||
|
|
||||||
|
Text label = CreateText("Value", panel.transform, font, "100 / 100", 13, TextAnchor.MiddleRight, Color.white);
|
||||||
|
Anchor(label.rectTransform, new Vector2(1f, 0f), new Vector2(1f, 1f), new Vector2(1f, 0.5f), new Vector2(78f, 0f), new Vector2(-9f, 0f));
|
||||||
|
|
||||||
|
ResourceBarUI resource = panel.AddComponent<ResourceBarUI>();
|
||||||
|
SetObject(resource, "playerStats", stats);
|
||||||
|
SetBool(resource, "useMana", mana);
|
||||||
|
SetObject(resource, "fill", fill);
|
||||||
|
SetObject(resource, "valueLabel", label);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static TooltipUI BuildTooltip(Transform canvas, Font font)
|
||||||
|
{
|
||||||
|
GameObject panel = CreateUIObject("Ability Tooltip", canvas, new Vector2(0.5f, 0f), new Vector2(0.5f, 0f), new Vector2(0.5f, 0f), new Vector2(280f, 172f), new Vector2(0f, 164f));
|
||||||
|
Image back = panel.AddComponent<Image>();
|
||||||
|
back.color = new Color(0.025f, 0.03f, 0.035f, 0.96f);
|
||||||
|
|
||||||
|
Text title = CreateText("Title", panel.transform, font, "Ability", 19, TextAnchor.MiddleLeft, Color.white);
|
||||||
|
title.horizontalOverflow = HorizontalWrapMode.Overflow;
|
||||||
|
title.verticalOverflow = VerticalWrapMode.Truncate;
|
||||||
|
Anchor(title.rectTransform, new Vector2(0f, 1f), new Vector2(1f, 1f), new Vector2(0.5f, 1f), new Vector2(-28f, 30f), new Vector2(0f, -20f));
|
||||||
|
|
||||||
|
Text description = CreateText("Description", panel.transform, font, "", 13, TextAnchor.UpperLeft, new Color(0.78f, 0.82f, 0.86f, 1f));
|
||||||
|
description.horizontalOverflow = HorizontalWrapMode.Wrap;
|
||||||
|
description.verticalOverflow = VerticalWrapMode.Truncate;
|
||||||
|
Anchor(description.rectTransform, new Vector2(0f, 0.42f), new Vector2(1f, 0.79f), new Vector2(0.5f, 0.5f), new Vector2(-28f, 0f), new Vector2(0f, -4f));
|
||||||
|
|
||||||
|
Text stats = CreateText("Stats", panel.transform, font, "", 14, TextAnchor.UpperLeft, new Color(0.48f, 0.88f, 1f, 1f));
|
||||||
|
stats.horizontalOverflow = HorizontalWrapMode.Wrap;
|
||||||
|
stats.verticalOverflow = VerticalWrapMode.Truncate;
|
||||||
|
Anchor(stats.rectTransform, new Vector2(0f, 0f), new Vector2(1f, 0.34f), new Vector2(0.5f, 0f), new Vector2(-28f, -12f), new Vector2(0f, 10f));
|
||||||
|
|
||||||
|
TooltipUI tooltip = panel.AddComponent<TooltipUI>();
|
||||||
|
SetObject(tooltip, "titleLabel", title);
|
||||||
|
SetObject(tooltip, "descriptionLabel", description);
|
||||||
|
SetObject(tooltip, "statsLabel", stats);
|
||||||
|
panel.SetActive(false);
|
||||||
|
return tooltip;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static GameObject CreateUIObject(string name, Transform parent, Vector2 anchorMin, Vector2 anchorMax, Vector2 pivot, Vector2 size, Vector2 anchoredPosition)
|
||||||
|
{
|
||||||
|
GameObject obj = new GameObject(name, typeof(RectTransform));
|
||||||
|
RectTransform rect = obj.GetComponent<RectTransform>();
|
||||||
|
if (parent != null)
|
||||||
|
{
|
||||||
|
rect.SetParent(parent, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
Anchor(rect, anchorMin, anchorMax, pivot, size, anchoredPosition);
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static Text CreateText(string name, Transform parent, Font font, string text, int size, TextAnchor alignment, Color color)
|
||||||
|
{
|
||||||
|
GameObject obj = CreateUIObject(name, parent, new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(120f, 30f), Vector2.zero);
|
||||||
|
Text label = obj.AddComponent<Text>();
|
||||||
|
label.font = font;
|
||||||
|
label.text = text;
|
||||||
|
label.fontSize = size;
|
||||||
|
label.alignment = alignment;
|
||||||
|
label.color = color;
|
||||||
|
label.horizontalOverflow = HorizontalWrapMode.Wrap;
|
||||||
|
label.verticalOverflow = VerticalWrapMode.Truncate;
|
||||||
|
label.raycastTarget = false;
|
||||||
|
Shadow shadow = obj.AddComponent<Shadow>();
|
||||||
|
shadow.effectColor = new Color(0f, 0f, 0f, 0.65f);
|
||||||
|
shadow.effectDistance = new Vector2(1f, -1f);
|
||||||
|
return label;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void Anchor(RectTransform rect, Vector2 anchorMin, Vector2 anchorMax, Vector2 pivot, Vector2 size, Vector2 anchoredPosition)
|
||||||
|
{
|
||||||
|
rect.anchorMin = anchorMin;
|
||||||
|
rect.anchorMax = anchorMax;
|
||||||
|
rect.pivot = pivot;
|
||||||
|
rect.sizeDelta = size;
|
||||||
|
rect.anchoredPosition = anchoredPosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void Stretch(RectTransform rect)
|
||||||
|
{
|
||||||
|
Anchor(rect, Vector2.zero, Vector2.one, new Vector2(0.5f, 0.5f), Vector2.zero, Vector2.zero);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static GameObject SavePrefab(GameObject root, string path)
|
||||||
|
{
|
||||||
|
if (AssetDatabase.LoadAssetAtPath<GameObject>(path) != null)
|
||||||
|
{
|
||||||
|
AssetDatabase.DeleteAsset(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
GameObject prefab = PrefabUtility.SaveAsPrefabAsset(root, path);
|
||||||
|
Object.DestroyImmediate(root);
|
||||||
|
return prefab;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void SetObject(Object target, string propertyName, Object value)
|
||||||
|
{
|
||||||
|
SerializedObject serializedObject = new SerializedObject(target);
|
||||||
|
SerializedProperty property = serializedObject.FindProperty(propertyName);
|
||||||
|
property.objectReferenceValue = value;
|
||||||
|
serializedObject.ApplyModifiedPropertiesWithoutUndo();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void SetObjectArray(Object target, string propertyName, Object[] values)
|
||||||
|
{
|
||||||
|
SerializedObject serializedObject = new SerializedObject(target);
|
||||||
|
SerializedProperty property = serializedObject.FindProperty(propertyName);
|
||||||
|
property.arraySize = values.Length;
|
||||||
|
for (int i = 0; i < values.Length; i++)
|
||||||
|
{
|
||||||
|
property.GetArrayElementAtIndex(i).objectReferenceValue = values[i];
|
||||||
|
}
|
||||||
|
|
||||||
|
serializedObject.ApplyModifiedPropertiesWithoutUndo();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void SetFloat(Object target, string propertyName, float value)
|
||||||
|
{
|
||||||
|
SerializedObject serializedObject = new SerializedObject(target);
|
||||||
|
SerializedProperty property = serializedObject.FindProperty(propertyName);
|
||||||
|
property.floatValue = value;
|
||||||
|
serializedObject.ApplyModifiedPropertiesWithoutUndo();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void SetVector3(Object target, string propertyName, Vector3 value)
|
||||||
|
{
|
||||||
|
SerializedObject serializedObject = new SerializedObject(target);
|
||||||
|
SerializedProperty property = serializedObject.FindProperty(propertyName);
|
||||||
|
property.vector3Value = value;
|
||||||
|
serializedObject.ApplyModifiedPropertiesWithoutUndo();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void SetBool(Object target, string propertyName, bool value)
|
||||||
|
{
|
||||||
|
SerializedObject serializedObject = new SerializedObject(target);
|
||||||
|
SerializedProperty property = serializedObject.FindProperty(propertyName);
|
||||||
|
property.boolValue = value;
|
||||||
|
serializedObject.ApplyModifiedPropertiesWithoutUndo();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f54253d11292b2e5a8901384da18b44a
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 20486e9b504435b91b3b858783cb4099
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,267 @@
|
|||||||
|
%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: 0
|
||||||
|
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||||
|
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 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: 705507994}
|
||||||
|
m_IndirectSpecularColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_UseRadianceAmbientProbe: 0
|
||||||
|
--- !u!157 &3
|
||||||
|
LightmapSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 12
|
||||||
|
m_GIWorkflowMode: 1
|
||||||
|
m_GISettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_BounceScale: 1
|
||||||
|
m_IndirectOutputScale: 1
|
||||||
|
m_AlbedoBoost: 1
|
||||||
|
m_EnvironmentLightingMode: 0
|
||||||
|
m_EnableBakedLightmaps: 1
|
||||||
|
m_EnableRealtimeLightmaps: 0
|
||||||
|
m_LightmapEditorSettings:
|
||||||
|
serializedVersion: 12
|
||||||
|
m_Resolution: 2
|
||||||
|
m_BakeResolution: 40
|
||||||
|
m_AtlasSize: 1024
|
||||||
|
m_AO: 0
|
||||||
|
m_AOMaxDistance: 1
|
||||||
|
m_CompAOExponent: 1
|
||||||
|
m_CompAOExponentDirect: 0
|
||||||
|
m_ExtractAmbientOcclusion: 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: 1
|
||||||
|
m_PVRSampling: 1
|
||||||
|
m_PVRDirectSampleCount: 32
|
||||||
|
m_PVRSampleCount: 500
|
||||||
|
m_PVRBounces: 2
|
||||||
|
m_PVREnvironmentSampleCount: 500
|
||||||
|
m_PVREnvironmentReferencePointCount: 2048
|
||||||
|
m_PVRFilteringMode: 2
|
||||||
|
m_PVRDenoiserTypeDirect: 0
|
||||||
|
m_PVRDenoiserTypeIndirect: 0
|
||||||
|
m_PVRDenoiserTypeAO: 0
|
||||||
|
m_PVRFilterTypeDirect: 0
|
||||||
|
m_PVRFilterTypeIndirect: 0
|
||||||
|
m_PVRFilterTypeAO: 0
|
||||||
|
m_PVREnvironmentMIS: 0
|
||||||
|
m_PVRCulling: 1
|
||||||
|
m_PVRFilteringGaussRadiusDirect: 1
|
||||||
|
m_PVRFilteringGaussRadiusIndirect: 5
|
||||||
|
m_PVRFilteringGaussRadiusAO: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||||
|
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||||
|
m_ExportTrainingData: 0
|
||||||
|
m_TrainingDataDestination: TrainingData
|
||||||
|
m_LightProbeSampleCountMultiplier: 4
|
||||||
|
m_LightingDataAsset: {fileID: 0}
|
||||||
|
m_LightingSettings: {fileID: 0}
|
||||||
|
--- !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 &705507993
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 705507995}
|
||||||
|
- component: {fileID: 705507994}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Directional Light
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!108 &705507994
|
||||||
|
Light:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 705507993}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 8
|
||||||
|
m_Type: 1
|
||||||
|
m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1}
|
||||||
|
m_Intensity: 1
|
||||||
|
m_Range: 10
|
||||||
|
m_SpotAngle: 30
|
||||||
|
m_CookieSize: 10
|
||||||
|
m_Shadows:
|
||||||
|
m_Type: 2
|
||||||
|
m_Resolution: -1
|
||||||
|
m_CustomResolution: -1
|
||||||
|
m_Strength: 1
|
||||||
|
m_Bias: 0.05
|
||||||
|
m_NormalBias: 0.4
|
||||||
|
m_NearPlane: 0.2
|
||||||
|
m_Cookie: {fileID: 0}
|
||||||
|
m_DrawHalo: 0
|
||||||
|
m_Flare: {fileID: 0}
|
||||||
|
m_RenderMode: 0
|
||||||
|
m_CullingMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 4294967295
|
||||||
|
m_Lightmapping: 1
|
||||||
|
m_LightShadowCasterMode: 0
|
||||||
|
m_AreaSize: {x: 1, y: 1}
|
||||||
|
m_BounceIntensity: 1
|
||||||
|
m_ColorTemperature: 6570
|
||||||
|
m_UseColorTemperature: 0
|
||||||
|
m_ShadowRadius: 0
|
||||||
|
m_ShadowAngle: 0
|
||||||
|
--- !u!4 &705507995
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 705507993}
|
||||||
|
m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261}
|
||||||
|
m_LocalPosition: {x: 0, y: 3, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||||
|
--- !u!1 &963194225
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 963194228}
|
||||||
|
- component: {fileID: 963194227}
|
||||||
|
- component: {fileID: 963194226}
|
||||||
|
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 &963194226
|
||||||
|
AudioListener:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 963194225}
|
||||||
|
m_Enabled: 1
|
||||||
|
--- !u!20 &963194227
|
||||||
|
Camera:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 963194225}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_ClearFlags: 1
|
||||||
|
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||||
|
m_projectionMatrixMode: 1
|
||||||
|
m_SensorSize: {x: 36, y: 24}
|
||||||
|
m_LensShift: {x: 0, y: 0}
|
||||||
|
m_GateFitMode: 2
|
||||||
|
m_FocalLength: 50
|
||||||
|
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: 0
|
||||||
|
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 &963194228
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 963194225}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 1, 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}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9fc0d4010bbf28b4594072e72b8655ab
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 56a96b51081dd25ff843a910a4d13c5d
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 520d70474fead3fe091c3df3d22a732f
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 583149b3796dedd8f900ff0e616d02ad, type: 3}
|
||||||
|
m_Name: Blink
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
abilityId: blink
|
||||||
|
abilityName: Blink
|
||||||
|
description: Teleports forward and stops safely before obstacles.
|
||||||
|
icon: {fileID: 21300000, guid: b04ebab2d671f3262b15a5b750ccade8, type: 3}
|
||||||
|
manaCost: 10
|
||||||
|
cooldown: 6
|
||||||
|
damage: 0
|
||||||
|
castRange: 8
|
||||||
|
effectPrefab: {fileID: 7044743775052238309, guid: c63bd2a44487d50b19b77facbe7253bc, type: 3}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1203d886bfbef62028d1fcf656e83d92
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
@@ -0,0 +1,114 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b04ebab2d671f3262b15a5b750ccade8
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 64
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 583149b3796dedd8f900ff0e616d02ad, type: 3}
|
||||||
|
m_Name: Fireball
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
abilityId: fireball
|
||||||
|
abilityName: Fireball
|
||||||
|
description: Launches a burning projectile that detonates on the first enemy hit.
|
||||||
|
icon: {fileID: 21300000, guid: 4f82d1559b9b474019c58be301c644e4, type: 3}
|
||||||
|
manaCost: 8
|
||||||
|
cooldown: 2
|
||||||
|
damage: 30
|
||||||
|
castRange: 24
|
||||||
|
effectPrefab: {fileID: 8233030197892727031, guid: 9c9c8981fa1fba3cb88d56b33f784c98, type: 3}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: fecfab40a775a4cad8b019f0d5f04e30
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
@@ -0,0 +1,114 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4f82d1559b9b474019c58be301c644e4
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 64
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!114 &11400000
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 0}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 583149b3796dedd8f900ff0e616d02ad, type: 3}
|
||||||
|
m_Name: IceNova
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
abilityId: ice_nova
|
||||||
|
abilityName: Ice Nova
|
||||||
|
description: Releases a sharp frost ring that damages all nearby enemies.
|
||||||
|
icon: {fileID: 21300000, guid: 013c1bac3b63908a9928eca632ff87ee, type: 3}
|
||||||
|
manaCost: 14
|
||||||
|
cooldown: 5
|
||||||
|
damage: 20
|
||||||
|
castRange: 5.5
|
||||||
|
effectPrefab: {fileID: 74185727533723460, guid: 7527379acaab23fee965fc5bf3adf536, type: 3}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b74b5a42340b16c70a06966d95c741d9
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 11400000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
@@ -0,0 +1,114 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 013c1bac3b63908a9928eca632ff87ee
|
||||||
|
TextureImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 13
|
||||||
|
mipmaps:
|
||||||
|
mipMapMode: 0
|
||||||
|
enableMipMap: 0
|
||||||
|
sRGBTexture: 1
|
||||||
|
linearTexture: 0
|
||||||
|
fadeOut: 0
|
||||||
|
borderMipMap: 0
|
||||||
|
mipMapsPreserveCoverage: 0
|
||||||
|
alphaTestReferenceValue: 0.5
|
||||||
|
mipMapFadeDistanceStart: 1
|
||||||
|
mipMapFadeDistanceEnd: 3
|
||||||
|
bumpmap:
|
||||||
|
convertToNormalMap: 0
|
||||||
|
externalNormalMap: 0
|
||||||
|
heightScale: 0.25
|
||||||
|
normalMapFilter: 0
|
||||||
|
flipGreenChannel: 0
|
||||||
|
isReadable: 0
|
||||||
|
streamingMipmaps: 0
|
||||||
|
streamingMipmapsPriority: 0
|
||||||
|
vTOnly: 0
|
||||||
|
ignoreMipmapLimit: 0
|
||||||
|
grayScaleToAlpha: 0
|
||||||
|
generateCubemap: 6
|
||||||
|
cubemapConvolution: 0
|
||||||
|
seamlessCubemap: 0
|
||||||
|
textureFormat: 1
|
||||||
|
maxTextureSize: 2048
|
||||||
|
textureSettings:
|
||||||
|
serializedVersion: 2
|
||||||
|
filterMode: 1
|
||||||
|
aniso: 1
|
||||||
|
mipBias: 0
|
||||||
|
wrapU: 1
|
||||||
|
wrapV: 1
|
||||||
|
wrapW: 1
|
||||||
|
nPOTScale: 0
|
||||||
|
lightmap: 0
|
||||||
|
compressionQuality: 50
|
||||||
|
spriteMode: 1
|
||||||
|
spriteExtrude: 1
|
||||||
|
spriteMeshType: 1
|
||||||
|
alignment: 0
|
||||||
|
spritePivot: {x: 0.5, y: 0.5}
|
||||||
|
spritePixelsToUnits: 64
|
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
spriteGenerateFallbackPhysicsShape: 1
|
||||||
|
alphaUsage: 1
|
||||||
|
alphaIsTransparency: 1
|
||||||
|
spriteTessellationDetail: -1
|
||||||
|
textureType: 8
|
||||||
|
textureShape: 1
|
||||||
|
singleChannelComponent: 0
|
||||||
|
flipbookRows: 1
|
||||||
|
flipbookColumns: 1
|
||||||
|
maxTextureSizeSet: 0
|
||||||
|
compressionQualitySet: 0
|
||||||
|
textureFormatSet: 0
|
||||||
|
ignorePngGamma: 0
|
||||||
|
applyGammaDecoding: 0
|
||||||
|
swizzle: 50462976
|
||||||
|
cookieLightType: 0
|
||||||
|
platformSettings:
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: DefaultTexturePlatform
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
- serializedVersion: 3
|
||||||
|
buildTarget: Standalone
|
||||||
|
maxTextureSize: 2048
|
||||||
|
resizeAlgorithm: 0
|
||||||
|
textureFormat: -1
|
||||||
|
textureCompression: 1
|
||||||
|
compressionQuality: 50
|
||||||
|
crunchedCompression: 0
|
||||||
|
allowsAlphaSplitting: 0
|
||||||
|
overridden: 0
|
||||||
|
ignorePlatformSupport: 0
|
||||||
|
androidETC2FallbackOverride: 0
|
||||||
|
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||||
|
spriteSheet:
|
||||||
|
serializedVersion: 2
|
||||||
|
sprites: []
|
||||||
|
outline: []
|
||||||
|
physicsShape: []
|
||||||
|
bones: []
|
||||||
|
spriteID: 5e97eb03825dee720800000000000000
|
||||||
|
internalID: 0
|
||||||
|
vertices: []
|
||||||
|
indices:
|
||||||
|
edges: []
|
||||||
|
weights: []
|
||||||
|
secondaryTextures: []
|
||||||
|
nameFileIdTable: {}
|
||||||
|
mipmapLimitGroupName:
|
||||||
|
pSDRemoveMatte: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6b2cbf8b35193bab49a1fcb1a05f6a45
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Binary file not shown.
@@ -0,0 +1,21 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a996f35a78e311ab2ad38c0fe55b72fd
|
||||||
|
TrueTypeFontImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 4
|
||||||
|
fontSize: 16
|
||||||
|
forceTextureCase: -2
|
||||||
|
characterSpacing: 0
|
||||||
|
characterPadding: 1
|
||||||
|
includeFontData: 1
|
||||||
|
fontNames:
|
||||||
|
- Ubuntu
|
||||||
|
fallbackFontReferences: []
|
||||||
|
customCharacters:
|
||||||
|
fontRenderingMode: 0
|
||||||
|
ascentCalculationMode: 1
|
||||||
|
useLegacyBoundsCalculation: 0
|
||||||
|
shouldRoundAdvanceValue: 1
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a536e22354551341da6f9477ba354241
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: ArcaneViolet
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.35
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.58, g: 0.23, b: 0.86, a: 1}
|
||||||
|
- _EmissionColor: {r: 0.8, g: 0.2, b: 1.4, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6bc061900bcefef1fa7a10518c1d102a
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: ArenaFloor
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.08
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.48, g: 0.49, b: 0.46, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c62b23cd621a11bdaa0a206b577d1855
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: ArenaLine
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.03
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.58, g: 0.6, b: 0.57, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 39590fc038d0291e2ad70cf300f20dfc
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: ArenaTrim
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.06
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.34, g: 0.36, b: 0.36, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: abfef5e099ab177848f0267891c508ac
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: ArenaWall
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.05
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.42, g: 0.43, b: 0.41, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c7d3c0bce470bdbbb89ccfb5c486079a
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Blink
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.3
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.52, g: 0.48, b: 1, a: 0.66}
|
||||||
|
- _EmissionColor: {r: 0.75, g: 0.55, b: 2.1, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cbf591398771cfdc5a58267fdbb07fbc
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Enemy
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.16
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.58, g: 0.08, b: 0.12, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b21415ddcc4f42cabab965796441df76
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Fire
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.4
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 0.32, b: 0.08, a: 1}
|
||||||
|
- _EmissionColor: {r: 2.2, g: 0.55, b: 0.08, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c71379ec99a4288b1a6556d57208de3b
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: FireTrail
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.15
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 0.68, b: 0.12, a: 0.55}
|
||||||
|
- _EmissionColor: {r: 1.3, g: 0.55, b: 0.12, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ac27e2adffcaa448992935fb3a84204f
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Ice
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.25
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.42, g: 0.85, b: 1, a: 0.62}
|
||||||
|
- _EmissionColor: {r: 0.2, g: 0.9, b: 1.7, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3c7e5f5ea173528249da16d5b3d2f725
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: ManaCrystal
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.45
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.18, g: 0.9, b: 0.95, a: 1}
|
||||||
|
- _EmissionColor: {r: 0.05, g: 1.4, b: 1.8, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ccfb7536c9c5a7f8ca64bb765025e661
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Mannequin
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.05
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.56, g: 0.43, b: 0.28, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 25cc1e5da87edc12d8068c114d04f2a2
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Player
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.25
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.12, g: 0.39, b: 0.82, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 357542f8725fc5145911d51097f78612
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: UIBack
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.07, g: 0.08, b: 0.09, a: 0.88}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 73636bdee665fbe5180f171b9462675b
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6c6d155545a345bcd834293ff9fed15c
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c16f12e1619edc479a4442515c03f6f3
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c63bd2a44487d50b19b77facbe7253bc
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cbde141f0d79aca8b9e59e9fc219cc6a
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9c9c8981fa1fba3cb88d56b33f784c98
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7527379acaab23fee965fc5bf3adf536
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,155 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &4999348224897424458
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 6930926766086140348}
|
||||||
|
- component: {fileID: 6873724021575915518}
|
||||||
|
- component: {fileID: 2476997287638665289}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: CrystalVisual
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &6930926766086140348
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4999348224897424458}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0.8, z: 0}
|
||||||
|
m_LocalScale: {x: 0.65, y: 1.25, z: 0.65}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 7641405453451564737}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &6873724021575915518
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4999348224897424458}
|
||||||
|
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!23 &2476997287638665289
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 4999348224897424458}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: ccfb7536c9c5a7f8ca64bb765025e661, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 1
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!1 &7586463254748820877
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7641405453451564737}
|
||||||
|
- component: {fileID: 617560279979812943}
|
||||||
|
- component: {fileID: 5540601211766811825}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: PF_ManaCrystal
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &7641405453451564737
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7586463254748820877}
|
||||||
|
serializedVersion: 2
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 6930926766086140348}
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!135 &617560279979812943
|
||||||
|
SphereCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7586463254748820877}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 1
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_Radius: 1.2
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &5540601211766811825
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7586463254748820877}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: cf05fce7fd259f2ef9cfdd279ef00cc0, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
restoreAmount: 35
|
||||||
|
respawnTime: 7
|
||||||
|
visualRoot: {fileID: 4999348224897424458}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3f9eaf7e165aaad3c9a0c90da19eb4cb
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 220bfee20b961753bb065420e619ae44
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,124 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &7634698560499293559
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4395142045622187999}
|
||||||
|
- component: {fileID: 1773181403832678870}
|
||||||
|
- component: {fileID: 6341754504742841231}
|
||||||
|
- component: {fileID: 9216982529389855268}
|
||||||
|
- component: {fileID: 1588243564334313478}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: PF_Enemy
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!4 &4395142045622187999
|
||||||
|
Transform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7634698560499293559}
|
||||||
|
serializedVersion: 2
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1.35, z: 1}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 0}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!33 &1773181403832678870
|
||||||
|
MeshFilter:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7634698560499293559}
|
||||||
|
m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0}
|
||||||
|
--- !u!136 &6341754504742841231
|
||||||
|
CapsuleCollider:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7634698560499293559}
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_IncludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_ExcludeLayers:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 0
|
||||||
|
m_LayerOverridePriority: 0
|
||||||
|
m_IsTrigger: 0
|
||||||
|
m_ProvidesContacts: 0
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Radius: 0.85
|
||||||
|
m_Height: 2.4
|
||||||
|
m_Direction: 1
|
||||||
|
m_Center: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!23 &9216982529389855268
|
||||||
|
MeshRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7634698560499293559}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_CastShadows: 1
|
||||||
|
m_ReceiveShadows: 1
|
||||||
|
m_DynamicOccludee: 1
|
||||||
|
m_StaticShadowCaster: 0
|
||||||
|
m_MotionVectors: 1
|
||||||
|
m_LightProbeUsage: 1
|
||||||
|
m_ReflectionProbeUsage: 1
|
||||||
|
m_RayTracingMode: 2
|
||||||
|
m_RayTraceProcedural: 0
|
||||||
|
m_RenderingLayerMask: 1
|
||||||
|
m_RendererPriority: 0
|
||||||
|
m_Materials:
|
||||||
|
- {fileID: 2100000, guid: b21415ddcc4f42cabab965796441df76, type: 2}
|
||||||
|
m_StaticBatchInfo:
|
||||||
|
firstSubMesh: 0
|
||||||
|
subMeshCount: 0
|
||||||
|
m_StaticBatchRoot: {fileID: 0}
|
||||||
|
m_ProbeAnchor: {fileID: 0}
|
||||||
|
m_LightProbeVolumeOverride: {fileID: 0}
|
||||||
|
m_ScaleInLightmap: 1
|
||||||
|
m_ReceiveGI: 1
|
||||||
|
m_PreserveUVs: 1
|
||||||
|
m_IgnoreNormalsForChartDetection: 0
|
||||||
|
m_ImportantGI: 0
|
||||||
|
m_StitchLightmapSeams: 1
|
||||||
|
m_SelectedEditorRenderState: 3
|
||||||
|
m_MinimumChartSize: 4
|
||||||
|
m_AutoUVMaxDistance: 0.5
|
||||||
|
m_AutoUVMaxAngle: 89
|
||||||
|
m_LightmapParameters: {fileID: 0}
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingLayer: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_AdditionalVertexStreams: {fileID: 0}
|
||||||
|
--- !u!114 &1588243564334313478
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7634698560499293559}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 843f0415e5497d8ebb5efafe243655cc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
health: 80
|
||||||
|
deathEffectPrefab: {fileID: 714810961010254114, guid: cbde141f0d79aca8b9e59e9fc219cc6a, type: 3}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 73135072154e5cd8b8106ab6e60c2821
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 17757d712d08559abbf6e30833fff409
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,632 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &608504149594000596
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7247278521930149736}
|
||||||
|
- component: {fileID: 8735730302520754162}
|
||||||
|
- component: {fileID: 7475189927202266002}
|
||||||
|
- component: {fileID: 722162488385466025}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Name
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &7247278521930149736
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 608504149594000596}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 9141315195394997102}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
m_AnchorMax: {x: 1, y: 0}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 10}
|
||||||
|
m_SizeDelta: {x: -8, y: 18}
|
||||||
|
m_Pivot: {x: 0.5, y: 0}
|
||||||
|
--- !u!222 &8735730302520754162
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 608504149594000596}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &7475189927202266002
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 608504149594000596}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.88, g: 0.91, b: 0.94, a: 1}
|
||||||
|
m_RaycastTarget: 0
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: a996f35a78e311ab2ad38c0fe55b72fd, type: 3}
|
||||||
|
m_FontSize: 11
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 10
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 4
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text: Fireball
|
||||||
|
--- !u!114 &722162488385466025
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 608504149594000596}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: cfabb0440166ab443bba8876756fdfa9, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_EffectColor: {r: 0, g: 0, b: 0, a: 0.65}
|
||||||
|
m_EffectDistance: {x: 1, y: -1}
|
||||||
|
m_UseGraphicAlpha: 1
|
||||||
|
--- !u!1 &1536169223625580064
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3797378850096372253}
|
||||||
|
- component: {fileID: 4923885556486817639}
|
||||||
|
- component: {fileID: 5079199749856823331}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Icon
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &3797378850096372253
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1536169223625580064}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 9141315195394997102}
|
||||||
|
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: 8}
|
||||||
|
m_SizeDelta: {x: -14, y: -22}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &4923885556486817639
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1536169223625580064}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &5079199749856823331
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1536169223625580064}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 0
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 0}
|
||||||
|
m_Type: 0
|
||||||
|
m_PreserveAspect: 1
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 4
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
|
--- !u!1 &3614832268866040471
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 9141315195394997102}
|
||||||
|
- component: {fileID: 2926091431950678697}
|
||||||
|
- component: {fileID: 6933147844126873368}
|
||||||
|
- component: {fileID: 7789013049776862081}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: PF_AbilitySlot
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &9141315195394997102
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3614832268866040471}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 3797378850096372253}
|
||||||
|
- {fileID: 4535981524692706756}
|
||||||
|
- {fileID: 2101477078692551713}
|
||||||
|
- {fileID: 7247278521930149736}
|
||||||
|
- {fileID: 4085863148948845051}
|
||||||
|
- {fileID: 2121848537481446902}
|
||||||
|
m_Father: {fileID: 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: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 76, y: 76}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &2926091431950678697
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3614832268866040471}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &6933147844126873368
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3614832268866040471}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.045, g: 0.05, b: 0.055, a: 0.9}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 0}
|
||||||
|
m_Type: 0
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 4
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 0
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
|
--- !u!114 &7789013049776862081
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3614832268866040471}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: d80b838b44dd63b8a83685aa2df02f15, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
icon: {fileID: 5079199749856823331}
|
||||||
|
cooldownOverlay: {fileID: 8944331240822246042}
|
||||||
|
hotkeyLabel: {fileID: 7765891714554092883}
|
||||||
|
nameLabel: {fileID: 7475189927202266002}
|
||||||
|
manaLabel: {fileID: 5233868794390361270}
|
||||||
|
cooldownLabel: {fileID: 6863321974621911260}
|
||||||
|
--- !u!1 &5341647101846113354
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2121848537481446902}
|
||||||
|
- component: {fileID: 8619810546919850144}
|
||||||
|
- component: {fileID: 6863321974621911260}
|
||||||
|
- component: {fileID: 9128068319826211187}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Cooldown
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &2121848537481446902
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5341647101846113354}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 9141315195394997102}
|
||||||
|
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!222 &8619810546919850144
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5341647101846113354}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &6863321974621911260
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5341647101846113354}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 0
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: a996f35a78e311ab2ad38c0fe55b72fd, type: 3}
|
||||||
|
m_FontSize: 20
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 10
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 4
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text:
|
||||||
|
--- !u!114 &9128068319826211187
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5341647101846113354}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: cfabb0440166ab443bba8876756fdfa9, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_EffectColor: {r: 0, g: 0, b: 0, a: 0.65}
|
||||||
|
m_EffectDistance: {x: 1, y: -1}
|
||||||
|
m_UseGraphicAlpha: 1
|
||||||
|
--- !u!1 &6662498286514908493
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2101477078692551713}
|
||||||
|
- component: {fileID: 2920997174385611757}
|
||||||
|
- component: {fileID: 7765891714554092883}
|
||||||
|
- component: {fileID: 1293859880596860060}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Hotkey
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &2101477078692551713
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6662498286514908493}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 9141315195394997102}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 9, y: -8}
|
||||||
|
m_SizeDelta: {x: 22, y: 22}
|
||||||
|
m_Pivot: {x: 0, y: 1}
|
||||||
|
--- !u!222 &2920997174385611757
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6662498286514908493}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &7765891714554092883
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6662498286514908493}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.95, g: 0.95, b: 0.95, a: 1}
|
||||||
|
m_RaycastTarget: 0
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: a996f35a78e311ab2ad38c0fe55b72fd, type: 3}
|
||||||
|
m_FontSize: 18
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 10
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 4
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text: 1
|
||||||
|
--- !u!114 &1293859880596860060
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6662498286514908493}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: cfabb0440166ab443bba8876756fdfa9, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_EffectColor: {r: 0, g: 0, b: 0, a: 0.65}
|
||||||
|
m_EffectDistance: {x: 1, y: -1}
|
||||||
|
m_UseGraphicAlpha: 1
|
||||||
|
--- !u!1 &7817928310715058039
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4535981524692706756}
|
||||||
|
- component: {fileID: 7281330598271801328}
|
||||||
|
- component: {fileID: 8944331240822246042}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: CooldownOverlay
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &4535981524692706756
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7817928310715058039}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 9141315195394997102}
|
||||||
|
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: 8}
|
||||||
|
m_SizeDelta: {x: -14, y: -22}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &7281330598271801328
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7817928310715058039}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &8944331240822246042
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 7817928310715058039}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0, g: 0, b: 0, a: 0.68}
|
||||||
|
m_RaycastTarget: 0
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Sprite: {fileID: 0}
|
||||||
|
m_Type: 3
|
||||||
|
m_PreserveAspect: 0
|
||||||
|
m_FillCenter: 1
|
||||||
|
m_FillMethod: 4
|
||||||
|
m_FillAmount: 1
|
||||||
|
m_FillClockwise: 1
|
||||||
|
m_FillOrigin: 2
|
||||||
|
m_UseSpriteMesh: 0
|
||||||
|
m_PixelsPerUnitMultiplier: 1
|
||||||
|
--- !u!1 &8128369388681618916
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 4085863148948845051}
|
||||||
|
- component: {fileID: 5116199975826558980}
|
||||||
|
- component: {fileID: 5233868794390361270}
|
||||||
|
- component: {fileID: 8521329926478460823}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: Mana
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &4085863148948845051
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8128369388681618916}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 9141315195394997102}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 1, y: 1}
|
||||||
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
|
m_AnchoredPosition: {x: -7, y: -8}
|
||||||
|
m_SizeDelta: {x: 34, y: 20}
|
||||||
|
m_Pivot: {x: 1, y: 1}
|
||||||
|
--- !u!222 &5116199975826558980
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8128369388681618916}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &5233868794390361270
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8128369388681618916}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.43, g: 0.9, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 0
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: a996f35a78e311ab2ad38c0fe55b72fd, type: 3}
|
||||||
|
m_FontSize: 13
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 10
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 5
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text: 15
|
||||||
|
--- !u!114 &8521329926478460823
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8128369388681618916}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: cfabb0440166ab443bba8876756fdfa9, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_EffectColor: {r: 0, g: 0, b: 0, a: 0.65}
|
||||||
|
m_EffectDistance: {x: 1, y: -1}
|
||||||
|
m_UseGraphicAlpha: 1
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b5129c0f345dedd23bfda1dcb7e8b37f
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,157 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &594631576016251457
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 2707827470834117304}
|
||||||
|
- component: {fileID: 8944756138388630134}
|
||||||
|
- component: {fileID: 262169666036648522}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: PF_FloatingDamage
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &2707827470834117304
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 594631576016251457}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.01, y: 0.01, z: 0.01}
|
||||||
|
m_ConstrainProportionsScale: 0
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 6180491908805306701}
|
||||||
|
m_Father: {fileID: 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: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 120, y: 48}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!223 &8944756138388630134
|
||||||
|
Canvas:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 594631576016251457}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_RenderMode: 2
|
||||||
|
m_Camera: {fileID: 0}
|
||||||
|
m_PlaneDistance: 100
|
||||||
|
m_PixelPerfect: 0
|
||||||
|
m_ReceivesEvents: 1
|
||||||
|
m_OverrideSorting: 0
|
||||||
|
m_OverridePixelPerfect: 0
|
||||||
|
m_SortingBucketNormalizedSize: 0
|
||||||
|
m_VertexColorAlwaysGammaSpace: 0
|
||||||
|
m_AdditionalShaderChannelsFlag: 0
|
||||||
|
m_UpdateRectTransformForStandalone: 0
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_TargetDisplay: 0
|
||||||
|
--- !u!114 &262169666036648522
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 594631576016251457}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 33319da925118fecb85b8ee57a280c93, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
label: {fileID: 7598502487387398114}
|
||||||
|
lifetime: 1.1
|
||||||
|
riseSpeed: 1.2
|
||||||
|
--- !u!1 &8895322180530829542
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 6180491908805306701}
|
||||||
|
- component: {fileID: 6258516603297203140}
|
||||||
|
- component: {fileID: 7598502487387398114}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: DamageLabel
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &6180491908805306701
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8895322180530829542}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 2707827470834117304}
|
||||||
|
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!222 &6258516603297203140
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8895322180530829542}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &7598502487387398114
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8895322180530829542}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 0.86, b: 0.28, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: a996f35a78e311ab2ad38c0fe55b72fd, type: 3}
|
||||||
|
m_FontSize: 38
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 10
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 4
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text:
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 88c740095f139584cb17b7cca1711fcb
|
||||||
|
PrefabImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 49e5e8d37ea18d830b9e8eb49d131b4a
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7780d917787ff0f72938940e82214a67
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 521a48be091937317ad58df1cb89ac23
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 94a998cf95b69f374a3371ea2215e78c
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
using OTG.Lab06.Characters;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace OTG.Lab06.Abilities
|
||||||
|
{
|
||||||
|
public readonly struct AbilityCastContext
|
||||||
|
{
|
||||||
|
public AbilityCastContext(AbilityData ability, Transform caster, PlayerStats playerStats, Vector3 origin, Vector3 forward)
|
||||||
|
{
|
||||||
|
Ability = ability;
|
||||||
|
Caster = caster;
|
||||||
|
PlayerStats = playerStats;
|
||||||
|
Origin = origin;
|
||||||
|
Forward = forward.sqrMagnitude <= 0.0001f ? Vector3.forward : forward.normalized;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AbilityData Ability { get; }
|
||||||
|
public Transform Caster { get; }
|
||||||
|
public PlayerStats PlayerStats { get; }
|
||||||
|
public Vector3 Origin { get; }
|
||||||
|
public Vector3 Forward { get; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6b1c5987e5ece80c8bb4717d9f7eadde
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace OTG.Lab06.Abilities
|
||||||
|
{
|
||||||
|
[CreateAssetMenu(menuName = "OTG/Lab06/Ability Data", fileName = "AbilityData")]
|
||||||
|
public sealed class AbilityData : ScriptableObject
|
||||||
|
{
|
||||||
|
[Header("Identity")]
|
||||||
|
public string abilityId;
|
||||||
|
public string abilityName;
|
||||||
|
[TextArea(2, 5)] public string description;
|
||||||
|
public Sprite icon;
|
||||||
|
|
||||||
|
[Header("Numbers")]
|
||||||
|
public float manaCost;
|
||||||
|
public float cooldown;
|
||||||
|
public float damage;
|
||||||
|
public float castRange;
|
||||||
|
|
||||||
|
[Header("Behaviour")]
|
||||||
|
public GameObject effectPrefab;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 583149b3796dedd8f900ff0e616d02ad
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace OTG.Lab06.Abilities
|
||||||
|
{
|
||||||
|
public abstract class AbilityEffect : MonoBehaviour
|
||||||
|
{
|
||||||
|
public abstract void Activate(AbilityCastContext context);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ceef3b14322f2aa3094f34228660f0ef
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,142 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using OTG.Lab06.Characters;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace OTG.Lab06.Abilities
|
||||||
|
{
|
||||||
|
public sealed class AbilityManager : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField] private PlayerStats playerStats;
|
||||||
|
[SerializeField] private Transform castOrigin;
|
||||||
|
[SerializeField] private List<AbilityData> learnedAbilities = new List<AbilityData>();
|
||||||
|
|
||||||
|
private readonly List<AbilityRuntime> runtimes = new List<AbilityRuntime>();
|
||||||
|
|
||||||
|
public event Action<IReadOnlyList<AbilityRuntime>> AbilitiesChanged;
|
||||||
|
public event Action ResourcesChanged;
|
||||||
|
|
||||||
|
public IReadOnlyList<AbilityRuntime> Abilities => runtimes;
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
if (playerStats == null)
|
||||||
|
{
|
||||||
|
playerStats = GetComponent<PlayerStats>();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (castOrigin == null)
|
||||||
|
{
|
||||||
|
castOrigin = transform;
|
||||||
|
}
|
||||||
|
|
||||||
|
RebuildRuntime();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < runtimes.Count; i++)
|
||||||
|
{
|
||||||
|
runtimes[i].Tick(Time.deltaTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
HandleHotkeys();
|
||||||
|
AbilitiesChanged?.Invoke(runtimes);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SetLearnedAbilities(IEnumerable<AbilityData> abilities)
|
||||||
|
{
|
||||||
|
learnedAbilities.Clear();
|
||||||
|
learnedAbilities.AddRange(abilities);
|
||||||
|
RebuildRuntime();
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool TryCast(int abilityIndex)
|
||||||
|
{
|
||||||
|
if (abilityIndex < 0 || abilityIndex >= runtimes.Count)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
AbilityRuntime runtime = runtimes[abilityIndex];
|
||||||
|
AbilityData ability = runtime.Data;
|
||||||
|
|
||||||
|
if (ability == null || !runtime.IsReady || playerStats == null || !playerStats.SpendMana(ability.manaCost))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ability.effectPrefab == null)
|
||||||
|
{
|
||||||
|
Debug.LogWarning($"Ability '{ability.abilityName}' has no effect prefab.", ability);
|
||||||
|
playerStats.RestoreMana(ability.manaCost);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
Quaternion rotation = Quaternion.LookRotation(GetCastForward(), Vector3.up);
|
||||||
|
GameObject effectObject = Instantiate(ability.effectPrefab, GetCastOrigin(), rotation);
|
||||||
|
AbilityEffect effect = effectObject.GetComponent<AbilityEffect>();
|
||||||
|
if (effect == null)
|
||||||
|
{
|
||||||
|
Debug.LogWarning($"Ability prefab '{ability.effectPrefab.name}' has no AbilityEffect component.", ability.effectPrefab);
|
||||||
|
Destroy(effectObject);
|
||||||
|
playerStats.RestoreMana(ability.manaCost);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
var context = new AbilityCastContext(ability, transform, playerStats, GetCastOrigin(), GetCastForward());
|
||||||
|
effect.Activate(context);
|
||||||
|
runtime.StartCooldown();
|
||||||
|
ResourcesChanged?.Invoke();
|
||||||
|
AbilitiesChanged?.Invoke(runtimes);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void RebuildRuntime()
|
||||||
|
{
|
||||||
|
runtimes.Clear();
|
||||||
|
foreach (AbilityData ability in learnedAbilities)
|
||||||
|
{
|
||||||
|
if (ability != null)
|
||||||
|
{
|
||||||
|
runtimes.Add(new AbilityRuntime(ability));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
AbilitiesChanged?.Invoke(runtimes);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void HandleHotkeys()
|
||||||
|
{
|
||||||
|
for (int i = 0; i < runtimes.Count && i < 9; i++)
|
||||||
|
{
|
||||||
|
if (Input.GetKeyDown((KeyCode)((int)KeyCode.Alpha1 + i)))
|
||||||
|
{
|
||||||
|
TryCast(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private Vector3 GetCastOrigin()
|
||||||
|
{
|
||||||
|
return castOrigin == null ? transform.position + Vector3.up : castOrigin.position;
|
||||||
|
}
|
||||||
|
|
||||||
|
private Vector3 GetCastForward()
|
||||||
|
{
|
||||||
|
if (Camera.main != null)
|
||||||
|
{
|
||||||
|
Vector3 cameraForward = Camera.main.transform.forward;
|
||||||
|
cameraForward.y = 0f;
|
||||||
|
if (cameraForward.sqrMagnitude > 0.01f)
|
||||||
|
{
|
||||||
|
return cameraForward.normalized;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector3 forward = transform.forward;
|
||||||
|
forward.y = 0f;
|
||||||
|
return forward.sqrMagnitude <= 0.01f ? Vector3.forward : forward.normalized;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bd3c590200e1b8d059a875031b6fde6b
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
using System;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace OTG.Lab06.Abilities
|
||||||
|
{
|
||||||
|
[Serializable]
|
||||||
|
public sealed class AbilityRuntime
|
||||||
|
{
|
||||||
|
public AbilityRuntime(AbilityData data)
|
||||||
|
{
|
||||||
|
Data = data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public AbilityData Data { get; }
|
||||||
|
public float CooldownRemaining { get; private set; }
|
||||||
|
public bool IsReady => CooldownRemaining <= 0f;
|
||||||
|
public float CooldownNormalized => Data == null || Data.cooldown <= 0f ? 0f : Mathf.Clamp01(CooldownRemaining / Data.cooldown);
|
||||||
|
|
||||||
|
public void Tick(float deltaTime)
|
||||||
|
{
|
||||||
|
if (CooldownRemaining <= 0f)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
CooldownRemaining = Mathf.Max(0f, CooldownRemaining - deltaTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void StartCooldown()
|
||||||
|
{
|
||||||
|
CooldownRemaining = Data == null ? 0f : Mathf.Max(0f, Data.cooldown);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ca078e83fa216cd60ae3941e64408c83
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 3ee7ed34d5f40de199ec4c6b3b6065ec
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace OTG.Lab06.Characters
|
||||||
|
{
|
||||||
|
public sealed class ManaCrystal : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField] private float restoreAmount = 35f;
|
||||||
|
[SerializeField] private float respawnTime = 7f;
|
||||||
|
[SerializeField] private GameObject visualRoot;
|
||||||
|
|
||||||
|
private Collider triggerCollider;
|
||||||
|
private float cooldown;
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
triggerCollider = GetComponent<Collider>();
|
||||||
|
if (visualRoot == null && transform.childCount > 0)
|
||||||
|
{
|
||||||
|
visualRoot = transform.GetChild(0).gameObject;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
transform.Rotate(Vector3.up, 45f * Time.deltaTime, Space.World);
|
||||||
|
|
||||||
|
if (cooldown <= 0f)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
cooldown -= Time.deltaTime;
|
||||||
|
if (cooldown <= 0f)
|
||||||
|
{
|
||||||
|
SetAvailable(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void OnTriggerEnter(Collider other)
|
||||||
|
{
|
||||||
|
PlayerStats stats = other.GetComponentInParent<PlayerStats>();
|
||||||
|
if (stats == null || cooldown > 0f)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
stats.RestoreMana(restoreAmount);
|
||||||
|
cooldown = respawnTime;
|
||||||
|
SetAvailable(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void SetAvailable(bool available)
|
||||||
|
{
|
||||||
|
if (triggerCollider != null)
|
||||||
|
{
|
||||||
|
triggerCollider.enabled = available;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (visualRoot != null)
|
||||||
|
{
|
||||||
|
visualRoot.SetActive(available);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cf05fce7fd259f2ef9cfdd279ef00cc0
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace OTG.Lab06.Characters
|
||||||
|
{
|
||||||
|
[RequireComponent(typeof(CharacterController))]
|
||||||
|
public sealed class PlayerController : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField] private float moveSpeed = 6f;
|
||||||
|
[SerializeField] private float rotationSpeed = 12f;
|
||||||
|
[SerializeField] private float gravity = -24f;
|
||||||
|
[SerializeField] private Transform cameraTransform;
|
||||||
|
|
||||||
|
private CharacterController characterController;
|
||||||
|
private float verticalVelocity;
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
characterController = GetComponent<CharacterController>();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
if (cameraTransform == null && Camera.main != null)
|
||||||
|
{
|
||||||
|
cameraTransform = Camera.main.transform;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Update()
|
||||||
|
{
|
||||||
|
Vector2 input = new Vector2(Input.GetAxisRaw("Horizontal"), Input.GetAxisRaw("Vertical"));
|
||||||
|
input = Vector2.ClampMagnitude(input, 1f);
|
||||||
|
|
||||||
|
Vector3 forward = cameraTransform == null ? Vector3.forward : cameraTransform.forward;
|
||||||
|
Vector3 right = cameraTransform == null ? Vector3.right : cameraTransform.right;
|
||||||
|
forward.y = 0f;
|
||||||
|
right.y = 0f;
|
||||||
|
forward.Normalize();
|
||||||
|
right.Normalize();
|
||||||
|
|
||||||
|
Vector3 move = forward * input.y + right * input.x;
|
||||||
|
if (move.sqrMagnitude > 0.01f)
|
||||||
|
{
|
||||||
|
Quaternion targetRotation = Quaternion.LookRotation(move, Vector3.up);
|
||||||
|
transform.rotation = Quaternion.Slerp(transform.rotation, targetRotation, rotationSpeed * Time.deltaTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (characterController.isGrounded && verticalVelocity < 0f)
|
||||||
|
{
|
||||||
|
verticalVelocity = -2f;
|
||||||
|
}
|
||||||
|
|
||||||
|
verticalVelocity += gravity * Time.deltaTime;
|
||||||
|
Vector3 velocity = move * moveSpeed + Vector3.up * verticalVelocity;
|
||||||
|
characterController.Move(velocity * Time.deltaTime);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d36fc8809523bc02b9b0f6db8d4ecd1b
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
using System;
|
||||||
|
using OTG.Lab06.Core;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace OTG.Lab06.Characters
|
||||||
|
{
|
||||||
|
public sealed class PlayerStats : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField] private float health = 100f;
|
||||||
|
[SerializeField] private float mana = 100f;
|
||||||
|
|
||||||
|
private ResourceStat healthStat;
|
||||||
|
private ResourceStat manaStat;
|
||||||
|
|
||||||
|
public event Action<float, float> HealthChanged;
|
||||||
|
public event Action<float, float> ManaChanged;
|
||||||
|
|
||||||
|
public float Health { get { EnsureInitialized(); return healthStat.Current; } }
|
||||||
|
public float MaxHealth { get { EnsureInitialized(); return healthStat.Max; } }
|
||||||
|
public float Mana { get { EnsureInitialized(); return manaStat.Current; } }
|
||||||
|
public float MaxMana { get { EnsureInitialized(); return manaStat.Max; } }
|
||||||
|
|
||||||
|
private void Awake()
|
||||||
|
{
|
||||||
|
EnsureInitialized();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
HealthChanged?.Invoke(Health, MaxHealth);
|
||||||
|
ManaChanged?.Invoke(Mana, MaxMana);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void TakeDamage(float amount)
|
||||||
|
{
|
||||||
|
EnsureInitialized();
|
||||||
|
healthStat.Subtract(amount);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Heal(float amount)
|
||||||
|
{
|
||||||
|
EnsureInitialized();
|
||||||
|
healthStat.Add(amount);
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool SpendMana(float amount)
|
||||||
|
{
|
||||||
|
EnsureInitialized();
|
||||||
|
return manaStat.TrySpend(amount);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void RestoreMana(float amount)
|
||||||
|
{
|
||||||
|
EnsureInitialized();
|
||||||
|
manaStat.Add(amount);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void EnsureInitialized()
|
||||||
|
{
|
||||||
|
if (healthStat != null && manaStat != null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
healthStat = new ResourceStat(health);
|
||||||
|
manaStat = new ResourceStat(mana);
|
||||||
|
healthStat.Changed += (current, max) => HealthChanged?.Invoke(current, max);
|
||||||
|
manaStat.Changed += (current, max) => ManaChanged?.Invoke(current, max);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0c1de8ed2b96ea7af8f9a5268fd46f43
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace OTG.Lab06.Characters
|
||||||
|
{
|
||||||
|
public sealed class ThirdPersonCamera : MonoBehaviour
|
||||||
|
{
|
||||||
|
[SerializeField] private Transform target;
|
||||||
|
[SerializeField] private float mouseSensitivity = 2.5f;
|
||||||
|
[SerializeField] private float smoothTime = 0.12f;
|
||||||
|
[SerializeField] private float minPitch = 45f;
|
||||||
|
[SerializeField] private float maxPitch = 60f;
|
||||||
|
[SerializeField] private float initialPitch = 52f;
|
||||||
|
[SerializeField] private float distance = 14f;
|
||||||
|
[SerializeField] private float lookAhead = 3.5f;
|
||||||
|
[SerializeField] private float targetHeight = 1.25f;
|
||||||
|
|
||||||
|
private Vector3 velocity;
|
||||||
|
private float yaw;
|
||||||
|
private float pitch;
|
||||||
|
|
||||||
|
public void SetTarget(Transform newTarget)
|
||||||
|
{
|
||||||
|
target = newTarget;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
yaw = transform.eulerAngles.y;
|
||||||
|
pitch = Mathf.Clamp(initialPitch, minPitch, maxPitch);
|
||||||
|
Cursor.lockState = CursorLockMode.None;
|
||||||
|
Cursor.visible = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void LateUpdate()
|
||||||
|
{
|
||||||
|
if (target == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Input.GetMouseButtonDown(1))
|
||||||
|
{
|
||||||
|
Cursor.lockState = CursorLockMode.Locked;
|
||||||
|
Cursor.visible = false;
|
||||||
|
}
|
||||||
|
else if (Input.GetMouseButtonUp(1))
|
||||||
|
{
|
||||||
|
Cursor.lockState = CursorLockMode.None;
|
||||||
|
Cursor.visible = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Input.GetMouseButton(1))
|
||||||
|
{
|
||||||
|
yaw += Input.GetAxis("Mouse X") * mouseSensitivity;
|
||||||
|
pitch -= Input.GetAxis("Mouse Y") * mouseSensitivity;
|
||||||
|
pitch = Mathf.Clamp(pitch, minPitch, maxPitch);
|
||||||
|
}
|
||||||
|
|
||||||
|
Vector3 forward = Quaternion.Euler(0f, yaw, 0f) * Vector3.forward;
|
||||||
|
float pitchRadians = pitch * Mathf.Deg2Rad;
|
||||||
|
float horizontalDistance = Mathf.Cos(pitchRadians) * distance;
|
||||||
|
float height = Mathf.Sin(pitchRadians) * distance;
|
||||||
|
|
||||||
|
Vector3 desiredPosition = target.position - forward * horizontalDistance + Vector3.up * height;
|
||||||
|
Vector3 lookTarget = target.position + forward * lookAhead + Vector3.up * targetHeight;
|
||||||
|
|
||||||
|
transform.position = Vector3.SmoothDamp(transform.position, desiredPosition, ref velocity, smoothTime);
|
||||||
|
transform.rotation = Quaternion.LookRotation(lookTarget - transform.position, Vector3.up);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 77a9e5c97b39968429ddf7ef8a6d0687
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1f675801d7ba5741ca372e41e02394a6
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
using OTG.Lab06.Core;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace OTG.Lab06.Combat
|
||||||
|
{
|
||||||
|
public sealed class Enemy : MonoBehaviour, IDamageable
|
||||||
|
{
|
||||||
|
[SerializeField] private float health = 80f;
|
||||||
|
[SerializeField] private GameObject deathEffectPrefab;
|
||||||
|
|
||||||
|
private bool isAlive = true;
|
||||||
|
|
||||||
|
public Transform Transform => transform;
|
||||||
|
public bool IsAlive => isAlive;
|
||||||
|
|
||||||
|
public void TakeDamage(float amount)
|
||||||
|
{
|
||||||
|
if (!isAlive)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
health -= Mathf.Max(0f, amount);
|
||||||
|
FloatingDamageManager.Show(amount, transform.position + Vector3.up * 2.1f);
|
||||||
|
|
||||||
|
if (health <= 0f)
|
||||||
|
{
|
||||||
|
Die();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Die()
|
||||||
|
{
|
||||||
|
isAlive = false;
|
||||||
|
if (deathEffectPrefab != null)
|
||||||
|
{
|
||||||
|
Instantiate(deathEffectPrefab, transform.position + Vector3.up * 0.6f, Quaternion.identity);
|
||||||
|
}
|
||||||
|
|
||||||
|
Destroy(gameObject, 0.05f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 843f0415e5497d8ebb5efafe243655cc
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user