6XQ2S7MOI246AHRKTVDUFBPGM4UCYOFAMGSACBPBC3OAER5W6DNQC fileFormatVersion: 2guid: dedd634c421d0d447aae0e4bad8a07cafolderAsset: yesDefaultImporter:externalObjects: {}userData:assetBundleName:assetBundleVariant:
fileFormatVersion: 2guid: a71c8bfea6cb10449a2b695c335b3c8cMonoImporter:externalObjects: {}serializedVersion: 2defaultReferences: []executionOrder: 0icon: {instanceID: 0}userData:assetBundleName:assetBundleVariant:
using System;using System.Collections.Generic;using CareBoo.Serially;using TagFighter.Resources;using UnityEngine;namespace TagFighter.Effects{[CreateAssetMenu(fileName = "NewEffectColors", menuName = "Game/Misc/EffectColors")]public class EffectColors : ScriptableObject{[SerializeField] List<ColorMapping<Resource<IUnitType>, IUnitType>> _colorMapping;public Color this[Type resource] {get {var mappedcolor = _colorMapping.Find(m => m.Resource.Type == resource);if (mappedcolor != null) {return mappedcolor.GetColor();}throw new IndexOutOfRangeException($"has no mapping for ${resource.GetType()}");}}public bool ContainsKey(Type resource) {return _colorMapping.Find(m => m.Resource.Type == resource) != null;}}[Serializable]public class ColorMapping<TResource, TUnit>where TResource : Resource<TUnit>where TUnit : IUnitType{[TypeFilter(derivedFrom: typeof(IWatchableResource))]public SerializableType Resource;[SerializeField]Color _color;public Color GetColor() { return _color; }}}
fileFormatVersion: 2guid: 9a4847df660f27548bec02ac3c7d2e36NativeFormatImporter:externalObjects: {}mainObjectFileID: 11400000userData:assetBundleName:assetBundleVariant:
%YAML 1.1%TAG !u! tag:unity3d.com,2011:--- !u!114 &11400000MonoBehaviour:m_ObjectHideFlags: 0m_CorrespondingSourceObject: {fileID: 0}m_PrefabInstance: {fileID: 0}m_PrefabAsset: {fileID: 0}m_GameObject: {fileID: 0}m_Enabled: 1m_EditorHideFlags: 0m_Script: {fileID: 11500000, guid: c4299eb7af6691f4a82ce6a25fd96981, type: 3}m_Name: Runem_EditorClassIdentifier:RuneSprite: {fileID: 0}Rune:DisplayName:Speed: 0ManaCost: 0Effects:- Mode:rid: 786323896988073984Effect:rid: 786323896988073985references:version: 2RefIds:- rid: -2type: {class: , ns: , asm: }- rid: 786323896988073984type: {class: ImmediateEffect, ns: TagFighter.Effects, asm: Assembly-CSharp}data:_areaOfEffect:rid: -2- rid: 786323896988073985type: {class: UnaryResourceEffect, ns: TagFighter.Effects, asm: Assembly-CSharp}data:From:Resource:rid: 786323896988073986Location:rid: 786323896988073987Multiplier: 1Addend: 0To:Resource:rid: -2Location:rid: -2Multiplier: 1Addend: 0- rid: 786323896988073986type: {class: Pain, ns: TagFighter.Effects.ResourceTypeAccessors, asm: Assembly-CSharp}- rid: 786323896988073987type: {class: Context, ns: TagFighter.Effects.ResourceLocationAccessors.Get,asm: Assembly-CSharp}data:Register:rid: -2
fileFormatVersion: 2guid: 9a3a6cebec0d9f94e982f833295e7fdeNativeFormatImporter:externalObjects: {}mainObjectFileID: 11400000userData:assetBundleName:assetBundleVariant:
%YAML 1.1%TAG !u! tag:unity3d.com,2011:--- !u!114 &11400000MonoBehaviour:m_ObjectHideFlags: 0m_CorrespondingSourceObject: {fileID: 0}m_PrefabInstance: {fileID: 0}m_PrefabAsset: {fileID: 0}m_GameObject: {fileID: 0}m_Enabled: 1m_EditorHideFlags: 0m_Script: {fileID: 11500000, guid: c4299eb7af6691f4a82ce6a25fd96981, type: 3}m_Name: Rune 1m_EditorClassIdentifier:RuneSprite: {fileID: 0}Rune:DisplayName:Speed: 0ManaCost: 0Effects:- Mode:rid: -2Effect:rid: 786323897757204480references:version: 2RefIds:- rid: -2type: {class: , ns: , asm: }- rid: 786323897757204480type: {class: UnaryResourceEffect, ns: TagFighter.Effects, asm: Assembly-CSharp}data:From:Resource:rid: -2Location:rid: 786323897757204481Multiplier: 1Addend: 0To:Resource:rid: -2Location:rid: -2Multiplier: 1Addend: 0- rid: 786323897757204481type: {class: Context, ns: TagFighter.Effects.ResourceLocationAccessors.Get,asm: Assembly-CSharp}data:Register:rid: -2
fileFormatVersion: 2guid: 5243cedf28ddbe048b1085bdc7872289folderAsset: yesDefaultImporter:externalObjects: {}userData:assetBundleName:assetBundleVariant:
fileFormatVersion: 2guid: 6c8f41856c918d449a668658a4279b3dNativeFormatImporter:externalObjects: {}mainObjectFileID: 11400000userData:assetBundleName:assetBundleVariant:
%YAML 1.1%TAG !u! tag:unity3d.com,2011:--- !u!114 &11400000MonoBehaviour:m_ObjectHideFlags: 0m_CorrespondingSourceObject: {fileID: 0}m_PrefabInstance: {fileID: 0}m_PrefabAsset: {fileID: 0}m_GameObject: {fileID: 0}m_Enabled: 1m_EditorHideFlags: 0m_Script: {fileID: 11500000, guid: a71c8bfea6cb10449a2b695c335b3c8c, type: 3}m_Name: NewEffectColorsm_EditorClassIdentifier:_colorMapping:- Resource:typeId: aecc1739-a0df-4013-b430-22d2eb13f0ff_color: {r: 0.33579564, g: 0.468549, b: 0.9245283, a: 0}- Resource:typeId: 7f412c19-18fe-476f-92e4-469ffad0c5d4_color: {r: 0.94509804, g: 0.1286416, b: 0.10196078, a: 0}- Resource:typeId: da13f1c1-4359-4eb9-b969-7db50afe6423_color: {r: 0.31539613, g: 0.94509804, b: 0.10196078, a: 0}