public static void SetCameraCommand(SceneControllerType _cameraType, CameraCommand _command, params System.Object[] _params) { if (Instance == null) return; ICamera cam = null; switch(_cameraType) { case SceneControllerType.Player: cam = Instance.mSceneFlowData.PlayerCam; break; case SceneControllerType.Enemy: cam = Instance.mSceneFlowData.EnemyCam; break; case SceneControllerType.Bullet: cam = Instance.mSceneFlowData.BulletCam; break; } if (cam == null) return; cam.SetCommand (_command, _params); }
public static void SetRoleCommand(SceneControllerType _roleType, RoleCommand _command, params System.Object[] _params) { if (Instance == null) return; IRole role = null; switch(_roleType) { case SceneControllerType.Player: role = Instance.mSceneFlowData.Player; break; case SceneControllerType.Enemy: role = Instance.mSceneFlowData.Enemy; break; } if (role == null) return; role.SetCommand (_command, _params); }