예제 #1
0
        public CameraStateMachine(WorldCamera camera)
        {
            Register(new CameraStateTitle(this, camera), CameraStateType.Title);
            Register(new CameraStateRace(this, camera), CameraStateType.Race);
            Register(new CameraStateSky(this, camera), CameraStateType.Sky);

            Dispatch((int)CameraStateType.Title);
        }
예제 #2
0
        void FindOrCreateGameCamera()
        {
            if (_worldCamera != null)
            {
                return;
            }

            _worldCamera = GameObject.FindObjectOfType <WorldCamera>();
        }
예제 #3
0
 public CameraStateSky(CameraStateMachine stateMachine, WorldCamera camera) : base(stateMachine, camera)
 {
 }
예제 #4
0
 public CameraState(CameraStateMachine stateMachine, WorldCamera camera) : base(stateMachine)
 {
     WorldCamera = camera;
 }