Skip to content

Commit 397a17e

Browse files
committed
fix: fix unity 2019 compatibility
1 parent 8539d87 commit 397a17e

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

Runtime/Interface/ILSystemActionVariable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ namespace LSystemPackage
77
/// </summary>
88
public interface ILSystemActionVariable
99
{
10-
public abstract char Symbol { get; }
10+
char Symbol { get; }
1111

12-
public abstract void OnSymbolFind();
12+
void OnSymbolFind();
1313
}
1414
}

Runtime/Interface/ILSystemRule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
/// </summary>
88
public interface ILSystemRule
99
{
10-
public abstract string SequenceToInsert { get; }
10+
string SequenceToInsert { get; }
1111
}
1212
}

Runtime/Interface/ILSystemRuleVariable.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ namespace LSystemPackage
77
/// </summary>
88
public interface ILSystemRuleVariable
99
{
10-
public abstract char Symbol { get; }
10+
char Symbol { get; }
1111

12-
public abstract ILSystemRule Rule { get; }
12+
ILSystemRule Rule { get; }
1313
}
1414
}

Samples~/Demo/Script/Runtime/LSystemComponent.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ namespace LSystemPackage
1010
[Serializable]
1111
public class LSystemActionVariable : ILSystemActionVariable
1212
{
13+
[System.Serializable]
14+
public class CharEvent : UnityEvent<char>
15+
{
16+
}
17+
1318
public string symbol;
14-
public UnityEvent<char> action;
19+
public CharEvent action;
1520

1621
public char Symbol => symbol.First();
1722

0 commit comments

Comments
 (0)