예제 #1
0
        protected override void Awake()
        {
            base.Awake();

            if (_camera != null)
            {
                CameraPool.Register(this);
            }
        }
예제 #2
0
        protected override void Awake()
        {
            base.Awake();

            CameraPool.Register(this);

            _stateMachine = TypedStateMachine <Camera> .CreateFromParentComponentSource(this.gameObject, false, false);

            _stateMachine.StateChanged += this.OnStateChanged;
        }
        protected override void Awake()
        {
            base.Awake();

            //_camera = this.GetComponent<Camera>();
            //if (_camera == null)
            //{
            //    ObjUtil.SmartDestroy(this);
            //}
            //else
            //{
            //    CameraManager.Register(this);
            //}


            if (_camera != null)
            {
                CameraPool.Register(this);
            }
        }
예제 #4
0
        protected override void Awake()
        {
            base.Awake();

            CameraPool.Register(this);
        }