Beispiel #1
0
    public static void SetScriptId(this GameObject obj, ObjScriptEvent evt, int scriptId)
    {
        // See current python obj.scripts
        var script = obj.GetScript(obj_f.scripts_idx, (int)evt);

        script.scriptId = scriptId;
        obj.SetScript(obj_f.scripts_idx, (int)evt, script);
    }
Beispiel #2
0
 public static void RemoveScript(this GameObject obj, ObjScriptEvent evt)
 {
     obj.SetScriptId(evt, 0);
 }
Beispiel #3
0
 public static int GetScriptId(this GameObject obj, ObjScriptEvent evt)
 {
     // See current python obj.scripts
     return(obj.GetScript(obj_f.scripts_idx, (int)evt).scriptId);
 }
Beispiel #4
0
 public static int ExecuteObjectScript(this GameObject attachee, GameObject triggerer,
                                       ObjScriptEvent scriptEvent)
 {
     return(GameSystems.Script.ExecuteObjectScript(triggerer, attachee, scriptEvent));
 }