예제 #1
0
파일: Core.cs 프로젝트: QuakeIV/KOS
        public void Awake()
        {
            // This thing gets instantiated 4 times by KSP for some reason
            if (Fetch != null) return;
            Fetch = this;

            var gObj = new GameObject("kOSTermWindow", typeof (TerminalWindow));
            DontDestroyOnLoad(gObj);
            Window = (TerminalWindow) gObj.GetComponent(typeof (TerminalWindow));
            Window.Core = this;
        }
예제 #2
0
파일: Core.cs 프로젝트: vosechu/KOS
        public void Awake()
        {
            // This thing gets instantiated 4 times by KSP for some reason
            if (Fetch != null)
            {
                return;
            }
            Fetch = this;

            var gObj = new GameObject("kOSTermWindow", typeof(TerminalWindow));

            DontDestroyOnLoad(gObj);
            Window      = (TerminalWindow)gObj.GetComponent(typeof(TerminalWindow));
            Window.Core = this;
        }