浏览代码

Added Instigator Game Objects passing to Messager.Send()

/main
Thomas ICHÉ 5 年前
当前提交
1c2cba79
共有 6 个文件被更改,包括 18 次插入9 次删除
  1. 7
      CHANGELOG.md
  2. 2
      Runtime/LevelScripting/Actions/SendMessageAction.cs
  3. 4
      Runtime/LevelScripting/Events/OnGameManagerLevelStart.cs
  4. 5
      Runtime/LevelScripting/Events/OnMessageEvent.cs
  5. 6
      Runtime/Managers/Messager/Messager.cs
  6. 3
      Runtime/Managers/Messager/Playables/SendMessage/SendMessageBehaviour.cs

7
CHANGELOG.md


## 2019.3.1
#### Changed
* **Messager** is now able to pass instigator Game Object through message broadcast.
* **OnMessageEvent** now passes the optional instigator instead of itself as instigator to the Calls. In order to pass itself use an intermediate **SetInstigatorLogic** that targets the OnMessageEvent owner to replicate the former behaviour.
* **SendMessageAction** now passes its instigator game object to the **Messager**
* **SendMessageBehaviour** (Timeline Send Message Tracks/Clips) now displays an instigator game object field in the inspector to be attached to the sent message.
#### Fixed

2
Runtime/LevelScripting/Actions/SendMessageAction.cs


public override void Execute(GameObject instigator = null)
{
Messager.Send(MessageToSend);
Messager.Send(MessageToSend, instigator);