Esempio n. 1
0
 public StorableActionList(MVRScript script, string prefix)
 {
     for (int i = 0; i < maxCount; i++)
     {
         JSONStorableAction store = new JSONStorableAction(prefix + i, null);
         storables.Add(store);
         script.RegisterAction(store);
     }
 }
    private void CreateAction(string jsaName, JSONStorableAction.ActionCallback fn)
    {
        var jsa = new JSONStorableAction(jsaName, fn);

        _script.RegisterAction(jsa);
    }