浏览代码

Added description to EventChannels

/main
Ciro Continisio 4 年前
当前提交
2ced0ef9
共有 22 个文件被更改,包括 106 次插入76 次删除
  1. 2
      UOP1_Project/Assets/Scripts/Events/ScriptableObjects/AudioCueEventChannelSO.cs
  2. 2
      UOP1_Project/Assets/Scripts/Events/ScriptableObjects/IntEventChannelSO.cs
  3. 2
      UOP1_Project/Assets/Scripts/Events/ScriptableObjects/LoadEventChannelSO.cs
  4. 6
      UOP1_Project/Assets/Scripts/Events/ScriptableObjects/TransformEventChannelSO.cs
  5. 2
      UOP1_Project/Assets/Scripts/Events/ScriptableObjects/VoidEventChannelSO.cs
  6. 16
      UOP1_Project/Assets/ScriptableObjects/EventChannels/ExitGame_Channel.asset
  7. 16
      UOP1_Project/Assets/ScriptableObjects/EventChannels/LoadLocation_Channel.asset
  8. 16
      UOP1_Project/Assets/ScriptableObjects/EventChannels/PlayMusic_Channel.asset
  9. 17
      UOP1_Project/Assets/ScriptableObjects/EventChannels/PlaySFX_Channel.asset
  10. 16
      UOP1_Project/Assets/ScriptableObjects/EventChannels/PlayerInstantiated_Channel.asset
  11. 6
      UOP1_Project/Assets/Scripts/Events/ScriptableObjects/EventChannelBaseSO.cs
  12. 11
      UOP1_Project/Assets/Scripts/Events/ScriptableObjects/EventChannelBaseSO.cs.meta
  13. 14
      UOP1_Project/Assets/ScriptableObjects/EventChannels/SFXEvent_Channel.asset
  14. 14
      UOP1_Project/Assets/ScriptableObjects/EventChannels/ExitGameEvent_Channel.asset
  15. 14
      UOP1_Project/Assets/ScriptableObjects/EventChannels/LoadLocationEvent_Channel.asset
  16. 14
      UOP1_Project/Assets/ScriptableObjects/EventChannels/MusicEvent_Channel.asset
  17. 14
      UOP1_Project/Assets/ScriptableObjects/EventChannels/FrameObjectEvent_Channel.asset
  18. 0
      /UOP1_Project/Assets/ScriptableObjects/EventChannels/ExitGame_Channel.asset.meta
  19. 0
      /UOP1_Project/Assets/ScriptableObjects/EventChannels/PlayerInstantiated_Channel.asset.meta
  20. 0
      /UOP1_Project/Assets/ScriptableObjects/EventChannels/LoadLocation_Channel.asset.meta
  21. 0
      /UOP1_Project/Assets/ScriptableObjects/EventChannels/PlayMusic_Channel.asset.meta
  22. 0
      /UOP1_Project/Assets/ScriptableObjects/EventChannels/PlaySFX_Channel.asset.meta

2
UOP1_Project/Assets/Scripts/Events/ScriptableObjects/AudioCueEventChannelSO.cs


/// Event on which <c>AudioCue</c> components send a message to play SFX and music. <c>AudioManager</c> listens on these events, and actually plays the sound.
/// </summary>
[CreateAssetMenu(menuName = "Events/AudioCue Event Channel")]
public class AudioCueEventChannelSO : ScriptableObject
public class AudioCueEventChannelSO : EventChannelBaseSO
{
public UnityAction<AudioCueSO, AudioConfigurationSO, Vector3> OnAudioCueRequested;

2
UOP1_Project/Assets/Scripts/Events/ScriptableObjects/IntEventChannelSO.cs


/// </summary>
[CreateAssetMenu(menuName = "Events/Int Event Channel")]
public class IntEventChannelSO : ScriptableObject
public class IntEventChannelSO : EventChannelBaseSO
{
public UnityAction<int> OnEventRaised;
public void RaiseEvent(int value)

2
UOP1_Project/Assets/Scripts/Events/ScriptableObjects/LoadEventChannelSO.cs


/// Takes an array of the scenes we want to load and a bool to specify if we want to show a loading screen.
/// </summary>
[CreateAssetMenu(menuName = "Events/Load Event Channel")]
public class LoadEventChannelSO : ScriptableObject
public class LoadEventChannelSO : EventChannelBaseSO
{
public UnityAction<GameSceneSO[], bool> OnLoadingRequested;

6
UOP1_Project/Assets/Scripts/Events/ScriptableObjects/TransformEventChannelSO.cs


/// </summary>
[CreateAssetMenu(menuName = "Events/Transform Event Channel")]
public class TransformEventChannelSO : ScriptableObject
public class TransformEventChannelSO : EventChannelBaseSO
OnEventRaised.Invoke(value);
if(OnEventRaised != null)
OnEventRaised.Invoke(value);
}
}

2
UOP1_Project/Assets/Scripts/Events/ScriptableObjects/VoidEventChannelSO.cs


/// </summary>
[CreateAssetMenu(menuName = "Events/Void Event Channel")]
public class VoidEventChannelSO : ScriptableObject
public class VoidEventChannelSO : EventChannelBaseSO
{
public UnityAction OnEventRaised;

16
UOP1_Project/Assets/ScriptableObjects/EventChannels/ExitGame_Channel.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7fafac715ff920c4383fed91a38a351e, type: 3}
m_Name: ExitGame_Channel
m_EditorClassIdentifier:
description: Raised when anyone is requesting the game to shut down, like the Exit
Game button on the main menu.

16
UOP1_Project/Assets/ScriptableObjects/EventChannels/LoadLocation_Channel.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 82df99cd4c7564d4ca44d50a1dce516b, type: 3}
m_Name: LoadLocation_Channel
m_EditorClassIdentifier:
description: Raised to change scene, and load one or multiple new scenes. Usually
as a result of the player entering a trigger to move to another location.

16
UOP1_Project/Assets/ScriptableObjects/EventChannels/PlayMusic_Channel.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 273f9313082320e41a484f6faf242dab, type: 3}
m_Name: PlayMusic_Channel
m_EditorClassIdentifier:
description: Requests to play a song travel on this channel. The AudioManager picks
them up and fades in the new song.

17
UOP1_Project/Assets/ScriptableObjects/EventChannels/PlaySFX_Channel.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 273f9313082320e41a484f6faf242dab, type: 3}
m_Name: PlaySFX_Channel
m_EditorClassIdentifier:
description: SFX request travel on this channel. The AudioManager will pick them
up and activate as many SoundEmitters from the pool as needed to play all the
sounds that make the AudioCue requested in the event.

16
UOP1_Project/Assets/ScriptableObjects/EventChannels/PlayerInstantiated_Channel.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e5d62472420234949aa61408039f315b, type: 3}
m_Name: PlayerInstantiated_Channel
m_EditorClassIdentifier:
description: Raised by the SpawnSystem each time the player is instantiated, including
after changing location.

6
UOP1_Project/Assets/Scripts/Events/ScriptableObjects/EventChannelBaseSO.cs


using UnityEngine;
public class EventChannelBaseSO : ScriptableObject
{
[TextArea] public string description;
}

11
UOP1_Project/Assets/Scripts/Events/ScriptableObjects/EventChannelBaseSO.cs.meta


fileFormatVersion: 2
guid: 0ffcf2cd9e5ed8041912ce6b98b29b5d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

14
UOP1_Project/Assets/ScriptableObjects/EventChannels/SFXEvent_Channel.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 273f9313082320e41a484f6faf242dab, type: 3}
m_Name: SFXEvent_Channel
m_EditorClassIdentifier:

14
UOP1_Project/Assets/ScriptableObjects/EventChannels/ExitGameEvent_Channel.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7fafac715ff920c4383fed91a38a351e, type: 3}
m_Name: ExitGameEvent_Channel
m_EditorClassIdentifier:

14
UOP1_Project/Assets/ScriptableObjects/EventChannels/LoadLocationEvent_Channel.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 82df99cd4c7564d4ca44d50a1dce516b, type: 3}
m_Name: LoadLocationEvent_Channel
m_EditorClassIdentifier:

14
UOP1_Project/Assets/ScriptableObjects/EventChannels/MusicEvent_Channel.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 273f9313082320e41a484f6faf242dab, type: 3}
m_Name: MusicEvent_Channel
m_EditorClassIdentifier:

14
UOP1_Project/Assets/ScriptableObjects/EventChannels/FrameObjectEvent_Channel.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e5d62472420234949aa61408039f315b, type: 3}
m_Name: FrameObjectEvent_Channel
m_EditorClassIdentifier:

/UOP1_Project/Assets/ScriptableObjects/EventChannels/ExitGameEvent_Channel.asset.meta → /UOP1_Project/Assets/ScriptableObjects/EventChannels/ExitGame_Channel.asset.meta

/UOP1_Project/Assets/ScriptableObjects/EventChannels/FrameObjectEvent_Channel.asset.meta → /UOP1_Project/Assets/ScriptableObjects/EventChannels/PlayerInstantiated_Channel.asset.meta

/UOP1_Project/Assets/ScriptableObjects/EventChannels/LoadLocationEvent_Channel.asset.meta → /UOP1_Project/Assets/ScriptableObjects/EventChannels/LoadLocation_Channel.asset.meta

/UOP1_Project/Assets/ScriptableObjects/EventChannels/MusicEvent_Channel.asset.meta → /UOP1_Project/Assets/ScriptableObjects/EventChannels/PlayMusic_Channel.asset.meta

/UOP1_Project/Assets/ScriptableObjects/EventChannels/SFXEvent_Channel.asset.meta → /UOP1_Project/Assets/ScriptableObjects/EventChannels/PlaySFX_Channel.asset.meta

正在加载...
取消
保存