Skip to content

Commit

Permalink
fix: fix unity 2019 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Renardjojo committed Jul 8, 2022
1 parent 8539d87 commit 397a17e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Runtime/Interface/ILSystemActionVariable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ namespace LSystemPackage
/// </summary>
public interface ILSystemActionVariable
{
public abstract char Symbol { get; }
char Symbol { get; }

public abstract void OnSymbolFind();
void OnSymbolFind();
}
}
2 changes: 1 addition & 1 deletion Runtime/Interface/ILSystemRule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
/// </summary>
public interface ILSystemRule
{
public abstract string SequenceToInsert { get; }
string SequenceToInsert { get; }
}
}
4 changes: 2 additions & 2 deletions Runtime/Interface/ILSystemRuleVariable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ namespace LSystemPackage
/// </summary>
public interface ILSystemRuleVariable
{
public abstract char Symbol { get; }
char Symbol { get; }

public abstract ILSystemRule Rule { get; }
ILSystemRule Rule { get; }
}
}
7 changes: 6 additions & 1 deletion Samples~/Demo/Script/Runtime/LSystemComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ namespace LSystemPackage
[Serializable]
public class LSystemActionVariable : ILSystemActionVariable
{
[System.Serializable]
public class CharEvent : UnityEvent<char>
{
}

public string symbol;
public UnityEvent<char> action;
public CharEvent action;

public char Symbol => symbol.First();

Expand Down

0 comments on commit 397a17e

Please sign in to comment.