Skip to content

Commit

Permalink
Move Assets/Editor to Assets/Maroon/Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianGlawogger committed Nov 13, 2024
1 parent 4ba9198 commit 8c75db5
Show file tree
Hide file tree
Showing 14 changed files with 492 additions and 526 deletions.
9 changes: 0 additions & 9 deletions unity/Assets/Editor.meta

This file was deleted.

21 changes: 0 additions & 21 deletions unity/Assets/Editor/Editor.asmdef

This file was deleted.

7 changes: 0 additions & 7 deletions unity/Assets/Editor/Editor.asmdef.meta

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
using UnityEngine;

[System.Serializable]
public class ButtonAction<T>
{
// public settings
public Object target;
public string method;

// inspactor cache
public string[] candidates = { };
public int index;

// invocation
public System.Action<T> action;

public void Awake()
{
action = System.Action<T>.CreateDelegate(typeof(System.Action<T>), target, target.GetType().GetMethod(method)) as System.Action<T>;
}
}

public class ButtonActionAttribute : PropertyAttribute
{
public System.Type returnType;
public System.Type[] paramTypes;
public ButtonActionAttribute(System.Type returnType = null, params System.Type[] paramTypes)
{
this.returnType = returnType != null ? returnType : typeof(void);
this.paramTypes = paramTypes != null ? paramTypes : new System.Type[0];
}

public System.Delegate method;
}
using UnityEngine;

[System.Serializable]
public class ButtonAction<T>
{
// public settings
public Object target;
public string method;

// inspactor cache
public string[] candidates = { };
public int index;

// invocation
public System.Action<T> action;

public void Awake()
{
action = System.Action<T>.CreateDelegate(typeof(System.Action<T>), target, target.GetType().GetMethod(method)) as System.Action<T>;
}
}

public class ButtonActionAttribute : PropertyAttribute
{
public System.Type returnType;
public System.Type[] paramTypes;
public ButtonActionAttribute(System.Type returnType = null, params System.Type[] paramTypes)
{
this.returnType = returnType != null ? returnType : typeof(void);
this.paramTypes = paramTypes != null ? paramTypes : new System.Type[0];
}

public System.Delegate method;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8c75db5

Please sign in to comment.