void Start() { mCmd = GetComponent <RTSRuntimeEditor>(); mCmd.LoadFunction(this); LoadUnityTypes(); mCmd.Execute("script(\"rts.init\")", 0); }
protected override void Awake() { base.Awake(); ireader = new InputReader(); pColors = new string[] { "orange", "cyan", "lightblue", "teal", "green", "olive" }; _default = this; LoadFunction(this); assistant = new RTSAssistant(mEngine); DontDestroyOnLoad(gameObject); }