Esempio n. 1
0
        void Start()
        {
            mCmd = GetComponent <RTSRuntimeEditor>();
            mCmd.LoadFunction(this);
            LoadUnityTypes();


            mCmd.Execute("script(\"rts.init\")", 0);
        }
Esempio n. 2
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);
        }