예제 #1
0
        protected override void OnDestroy()
        {
            KS_SaveLoad.OnSave -= OnSave;
            KS_SaveLoad.OnLoad -= OnLoad;

            instance = null;

            base.OnDestroy();
        }
예제 #2
0
        // Use this for initialization
        void Start()
        {
            StarStart();
            instance = this;

            timeManager = KS_TimeManager.Instance;

            timeManager.OnTimeUpdate += OnTimeUpdate;

            mainLight = sun.GetComponent <Light>();
            skyMat    = RenderSettings.skybox;
        }
예제 #3
0
        protected override void Awake()
        {
            if (instance != null)
            {
                Destroy(this);
            }
            instance = this;
            StarAwake();

            KS_SaveLoad.OnSave += OnSave;
            KS_SaveLoad.OnLoad += OnLoad;

            base.Awake();
        }