Browse Source

Register DummyCollection class with MoonSharp in Awake()

master
chrisgregan 9 years ago
parent
commit
a21891c3c8
  1. 7
      Assets/Tests/FungusScript/DummyCollection.cs

7
Assets/Tests/FungusScript/DummyCollection.cs

@ -1,6 +1,7 @@
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using MoonSharp.Interpreter;
namespace Fungus
{
@ -10,6 +11,12 @@ namespace Fungus
public List<string> stringList = new List<string>();
public List<Sprite> spriteList = new List<Sprite>();
void Awake()
{
// Register this type with MoonSharp
UserData.RegisterType(GetType());
}
}
}
Loading…
Cancel
Save