/// <summary> /// Initializes a new instance of the <see cref="LogicControlScriptEngine"/> class. /// </summary> /// <remarks> /// Constructs a new LogicControl scripting engine with the specified script. /// </remarks> /// <param name="code"> /// The script code. /// </param> public LogicControlScriptEngine(string code) { this.m_LogicScript = new LogicScript(code); }
public static void Start(LogicScript startScript) { logicScript = startScript; GameObject.DontDestroyOnLoad(startScript.gameObject); AssetBundleManager.Init(() => EventManager.Dispatch(GameMoudle.Loading, GameEvent.Type.OpenMainView)); }