protected override void Awake() { base.Awake(); if (_camera != null) { CameraPool.Register(this); } }
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); } }
protected override void Awake() { base.Awake(); CameraPool.Register(this); }