IFN4UDLTN7TD26CPONDCRHW4G3DJEXEYV62ZHZC4QD7DKJ76JAEQC
4PLSNSVW4VOQW5ZXXZGUWB56WI33SXTGWOCD7PNE36OWDGD7NRJAC
O236B5LO6PHJ4TPZGYXDVSLB5EGXXRRLYYVWI46DPL5LEGXEIHZQC
MNQAZILY2KCL4TQRVIHDZT3IBVF2636GC5BCZPR2YA76C4JI353QC
DTKCWM4J7PFNWAAES3RZHQGDA6PTDNX4TZVOXAKF5V7LCZBI3XUAC
5I5QA3YK5G5QQCXMSDOEAX3A74LVXV7PYWAIHMLFANR2GUFWMKGQC
4665JDTWFDU7W2WYPZXTPFCDN2VY4YVABK7FNTIOXXWQNHA3YLNQC
public void OnRuneLeftClicked(Sprite runeSprite, Rune rune) {
runeImage.sprite = runeSprite;
runeName.text = rune.name;
runeCastTime.text = rune.speed.ToString() + " Seconds";
public void OnRuneLeftClicked(RuneRef runeRef) {
runeImage.sprite = runeRef.RuneSprite;
runeName.text = runeRef.rune.name;
runeCastTime.text = runeRef.rune.speed.ToString() + " Seconds";
public List<Sprite> runeSprites;
readonly List<Rune> runes = new() {
new Rune {name = "Jolt" , speed = 1.5f, manaCost = 10},
new Rune {name = "Flame", speed = 1.2f, manaCost = 10},
new Rune {name = "Sand" , speed = 0.8f, manaCost = 10},
};
public RuneBank RunesBank;
if (runeImageObject.TryGetComponent<RuneClicker>(out var runeClicker) && runeImageObject.TryGetComponent<Image>(out var runeImage)) {
runeImage.sprite = sprite;
runeClicker.GridLocation = count;
if (runeImageObject.TryGetComponent(out RuneClicker runeClicker) && runeImageObject.TryGetComponent(out Image runeImage)) {
runeImage.sprite = runeRef.RuneSprite;
runeClicker.GridLocation = index;
fileFormatVersion: 2
guid: 5c0ba65481d4f5c438c385c04dcfc3d1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName = "NewRuneBank", menuName = "Combat/RuneBank")]
public class RuneBank : ScriptableObject
{
public List<RuneRef> Runes;
}
fileFormatVersion: 2
guid: 9792cc8ce41dc7d4e83855e08a141943
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: c99c1bb7fbd78d8428a944f7570f5984
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%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: c4299eb7af6691f4a82ce6a25fd96981, type: 3}
m_Name: Sand
m_EditorClassIdentifier:
rune:
effects: []
name: Sand
speed: 0.8
manaCost: 10
RuneSprite: {fileID: 21300000, guid: 32e14f912c6a06b458eb2afc58ef65b7, type: 3}
fileFormatVersion: 2
guid: cc191c2869bba71439c3a0277d3185db
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: b8d951072541e9e44bd840c5a91381ea
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%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: 5c0ba65481d4f5c438c385c04dcfc3d1, type: 3}
m_Name: AllRunes
m_EditorClassIdentifier:
Runes:
- {fileID: 11400000, guid: d547b6d5a85b6254697c984090e5d80d, type: 2}
- {fileID: 11400000, guid: 15a5e031a09c59e4d8d32d98cd19d20f, type: 2}
- {fileID: 11400000, guid: c99c1bb7fbd78d8428a944f7570f5984, type: 2}
fileFormatVersion: 2
guid: d547b6d5a85b6254697c984090e5d80d
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%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: c4299eb7af6691f4a82ce6a25fd96981, type: 3}
m_Name: Jolt
m_EditorClassIdentifier:
rune:
effects: []
name: Jolt
speed: 1.5
manaCost: 10
RuneSprite: {fileID: 21300000, guid: 9651a3d17f0a1854884cb7af45747c07, type: 3}
fileFormatVersion: 2
guid: 15a5e031a09c59e4d8d32d98cd19d20f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
%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: c4299eb7af6691f4a82ce6a25fd96981, type: 3}
m_Name: Flame
m_EditorClassIdentifier:
rune:
effects: []
name: Flame
speed: 1.2
manaCost: 10
RuneSprite: {fileID: 21300000, guid: daf2193424371894d809e3daac1da7e0, type: 3}
runeSprites:
- {fileID: 21300000, guid: 9651a3d17f0a1854884cb7af45747c07, type: 3}
- {fileID: 21300000, guid: daf2193424371894d809e3daac1da7e0, type: 3}
- {fileID: 21300000, guid: 32e14f912c6a06b458eb2afc58ef65b7, type: 3}
RunesBank: {fileID: 11400000, guid: b8d951072541e9e44bd840c5a91381ea, type: 2}