浏览代码

Added SO to the name of scriptable objects scripts

/main
Unknown 4 年前
当前提交
860e61c1
共有 9 个文件被更改,包括 20 次插入20 次删除
  1. 2
      UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/GameSceneSO.cs
  2. 2
      UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/LocationSO.cs
  3. 18
      UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/MenuSO.cs
  4. 18
      UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/Menu.cs
  5. 0
      /UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/GameSceneSO.cs.meta
  6. 0
      /UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/LocationSO.cs.meta
  7. 0
      /UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/MenuSO.cs.meta
  8. 0
      /UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/GameSceneSO.cs
  9. 0
      /UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/LocationSO.cs

2
UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/GameSceneSO.cs


/// This class is a base class which contains what is commun for all game scenes (Locations or Menus)
/// </summary>
public class GameScene : ScriptableObject
public class GameSceneSO : ScriptableObject
{
[Header("Information")]
public string sceneName;

2
UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/LocationSO.cs


/// </summary>
[CreateAssetMenu(fileName = "NewLocation", menuName = "Scene Data/Location")]
public class Location : GameScene
public class LocationSO : GameSceneSO
{
[Header("Location specific")]
public int enemiesCount;

18
UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/MenuSO.cs


using UnityEngine;
/// <summary>
/// This class contains Settings specific to Menus only
/// </summary>
public enum Menu
{
Main_Menu,
Pause_Menu
}
[CreateAssetMenu(fileName = "NewMenu", menuName = "Scene Data/Menu")]
public class MenuSO : GameSceneSO
{
[Header("Menu specific")]
public Menu menuType;
}

18
UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/Menu.cs


using UnityEngine;
/// <summary>
/// This class contains Settings specific to Menus only
/// </summary>
public enum Type
{
Main_Menu,
Pause_Menu
}
[CreateAssetMenu(fileName = "NewMenu", menuName = "Scene Data/Menu")]
public class Menu : GameScene
{
[Header("Menu specific")]
public Type type;
}

/UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/GameScene.cs.meta → /UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/GameSceneSO.cs.meta

/UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/Location.cs.meta → /UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/LocationSO.cs.meta

/UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/Menu.cs.meta → /UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/MenuSO.cs.meta

/UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/GameScene.cs → /UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/GameSceneSO.cs

/UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/Location.cs → /UOP1_Project/Assets/Scripts/Scriptable Objects/SceneManagement/LocationSO.cs

正在加载...
取消
保存