Test_ScriptEvent.cs 369 B

123456789101112131415
  1. using System;
  2. using UnityEngine;
  3. public class Test_ScriptEvent : MonoBehaviour
  4. {
  5. public void StartScript()
  6. {
  7. GameMain.Instance.ScriptMgr.LoadAdvScenarioScript(this.m_strScriptFileName, this.m_strScriptLabel);
  8. GameMain.Instance.ScriptMgr.adv_kag.Exec();
  9. }
  10. public string m_strScriptFileName = string.Empty;
  11. public string m_strScriptLabel = string.Empty;
  12. }