示例#1
0
文件: R.cs 项目: cartman-2000/Rocket
        private void Awake()
        {
            Instance = this;
            Implementation = (IRocketImplementation)GetComponent(typeof(IRocketImplementation));

            #if DEBUG
                gameObject.TryAddComponent<Debugger>();
            #else
                Initialize();
            #endif
        }
示例#2
0
        private void Awake()
        {
            Instance       = this;
            Implementation = (IRocketImplementation)GetComponent(typeof(IRocketImplementation));

            #if DEBUG
            gameObject.TryAddComponent <Debugger>();
            #else
            Initialize();
            #endif
        }