From 397a17e0eee230af496c03a529a02680fb869c0d Mon Sep 17 00:00:00 2001 From: Six Jonathan Date: Sat, 9 Jul 2022 01:01:27 +0200 Subject: [PATCH] fix: fix unity 2019 compatibility --- Runtime/Interface/ILSystemActionVariable.cs | 4 ++-- Runtime/Interface/ILSystemRule.cs | 2 +- Runtime/Interface/ILSystemRuleVariable.cs | 4 ++-- Samples~/Demo/Script/Runtime/LSystemComponent.cs | 7 ++++++- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Runtime/Interface/ILSystemActionVariable.cs b/Runtime/Interface/ILSystemActionVariable.cs index 5ee973a..6e74fa9 100644 --- a/Runtime/Interface/ILSystemActionVariable.cs +++ b/Runtime/Interface/ILSystemActionVariable.cs @@ -7,8 +7,8 @@ namespace LSystemPackage /// public interface ILSystemActionVariable { - public abstract char Symbol { get; } + char Symbol { get; } - public abstract void OnSymbolFind(); + void OnSymbolFind(); } } \ No newline at end of file diff --git a/Runtime/Interface/ILSystemRule.cs b/Runtime/Interface/ILSystemRule.cs index 55dd4ea..f96ab31 100644 --- a/Runtime/Interface/ILSystemRule.cs +++ b/Runtime/Interface/ILSystemRule.cs @@ -7,6 +7,6 @@ /// public interface ILSystemRule { - public abstract string SequenceToInsert { get; } + string SequenceToInsert { get; } } } \ No newline at end of file diff --git a/Runtime/Interface/ILSystemRuleVariable.cs b/Runtime/Interface/ILSystemRuleVariable.cs index 71697f9..28e4ccf 100644 --- a/Runtime/Interface/ILSystemRuleVariable.cs +++ b/Runtime/Interface/ILSystemRuleVariable.cs @@ -7,8 +7,8 @@ namespace LSystemPackage /// public interface ILSystemRuleVariable { - public abstract char Symbol { get; } + char Symbol { get; } - public abstract ILSystemRule Rule { get; } + ILSystemRule Rule { get; } } } \ No newline at end of file diff --git a/Samples~/Demo/Script/Runtime/LSystemComponent.cs b/Samples~/Demo/Script/Runtime/LSystemComponent.cs index 67b6ca9..a14b699 100644 --- a/Samples~/Demo/Script/Runtime/LSystemComponent.cs +++ b/Samples~/Demo/Script/Runtime/LSystemComponent.cs @@ -10,8 +10,13 @@ namespace LSystemPackage [Serializable] public class LSystemActionVariable : ILSystemActionVariable { + [System.Serializable] + public class CharEvent : UnityEvent + { + } + public string symbol; - public UnityEvent action; + public CharEvent action; public char Symbol => symbol.First();