Beispiel #1
0
        public override void OnEnable()
        {
            _instance = this;
            RegisterMonoUpdater();

            EventManager.instance.AddListener <LevelStartEvent>(OnLevelStart);

            if (!_cameraComponent)
            {
                _cameraComponent = mDMono.transform.GetComponent <CameraBase>();
            }
        }
Beispiel #2
0
 public override void OnDisable()
 {
     ErasureMonoUpdater();
     EventManager.instance.RemoveListener <LevelStartEvent>(OnLevelStart);
     _instance = null;
 }