浏览代码

Added First Person Controller, Full Screen Fade Manager (alongside with Manager system) + SceneView <-> GameView POV link

/main
Thomas ICHÉ 5 年前
当前提交
fc2bb046
共有 34 个文件被更改,包括 913 次插入18 次删除
  1. 10
      Editor/MenuItems.cs
  2. 2
      Resources/Default_LevelStreamingManager.prefab
  3. 18
      Runtime/Actions/StreamingLevelAction.cs
  4. 13
      Runtime/Callable.cs
  5. 9
      Runtime/LevelStreaming/LevelStreamingManager.cs
  6. 7
      package.json
  7. 8
      Editor/GameViewLink.meta
  8. 38
      Editor/PropertyDrawers/NonNullCheckPropertyDrawer.cs
  9. 11
      Editor/PropertyDrawers/NonNullCheckPropertyDrawer.cs.meta
  10. 17
      Editor/PropertyDrawers/ScenePropertyDrawer.cs
  11. 11
      Editor/PropertyDrawers/ScenePropertyDrawer.cs.meta
  12. 202
      Resources/Default_FullScreenFadeManager.prefab
  13. 7
      Resources/Default_FullScreenFadeManager.prefab.meta
  14. 25
      Runtime/Actions/FullScreenFadeAction.cs
  15. 11
      Runtime/Actions/FullScreenFadeAction.cs.meta
  16. 8
      Runtime/Controllers.meta
  17. 8
      Runtime/Managers/Implementations.meta
  18. 8
      Runtime/PropertyAttributes.meta
  19. 142
      Editor/GameViewLink/LinkGameView.cs
  20. 11
      Editor/GameViewLink/LinkGameView.cs.meta
  21. 118
      Runtime/Controllers/FirstPersonController.cs
  22. 11
      Runtime/Controllers/FirstPersonController.cs.meta
  23. 89
      Runtime/Controllers/KeyboardGamepadPlayerInput.cs
  24. 11
      Runtime/Controllers/KeyboardGamepadPlayerInput.cs.meta
  25. 26
      Runtime/Controllers/PlayerInput.cs
  26. 11
      Runtime/Controllers/PlayerInput.cs.meta
  27. 68
      Runtime/Managers/Implementations/FullScreenFadeManager.cs
  28. 11
      Runtime/Managers/Implementations/FullScreenFadeManager.cs.meta
  29. 9
      Runtime/PropertyAttributes/NonNullCheckAttribute.cs
  30. 11
      Runtime/PropertyAttributes/NonNullCheckAttribute.cs.meta

10
Editor/MenuItems.cs


using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

static class MenuItems
public static class MenuItems
const int kMenuPriority = 330;
[MenuItem("Edit/Select None &D", priority = 149)]
static void UnselectAll()
{

static readonly string helperPreferenceName = "GameplayIngredients.toggleIngredientHelpers";
[MenuItem("Edit/Gameplay Ingredients/Toggle Helpers", priority = 117)]
[MenuItem("Edit/Gameplay Ingredients/Toggle Helpers", priority = kMenuPriority)]
static void ToggleIngredientHelpers()
{
bool value = EditorPrefs.GetBool(helperPreferenceName, false);

}
[MenuItem("Edit/Gameplay Ingredients/Toggle Helpers", true, 117)]
[MenuItem("Edit/Gameplay Ingredients/Toggle Helpers", validate = true, priority = kMenuPriority)]
static bool ToggleIngredientHelpersValidation()
{
Menu.SetChecked("Edit/Gameplay Ingredients/Toggle Helpers", EditorPrefs.GetBool(helperPreferenceName, false));

2
Resources/Default_LevelStreamingManager.prefab