浏览代码

add joint break event

/main
Laurent 5 年前
当前提交
aee0e4fd
共有 2 个文件被更改,包括 28 次插入0 次删除
  1. 17
      Runtime/LevelScripting/Events/OnJointBreakEvent.cs
  2. 11
      Runtime/LevelScripting/Events/OnJointBreakEvent.cs.meta

17
Runtime/LevelScripting/Events/OnJointBreakEvent.cs


using NaughtyAttributes;
using UnityEngine;
namespace GameplayIngredients.Events
{
[RequireComponent(typeof(Joint))]
public class OnJointBreakEvent : EventBase
{
[ReorderableList]
public Callable[] onJointBreak;
private void OnJointBreak(Collider other)
{
Callable.Call(onJointBreak, other.gameObject);
}
}
}

11
Runtime/LevelScripting/Events/OnJointBreakEvent.cs.meta


fileFormatVersion: 2
guid: 86d3be9dd9f73fa4a9a9e0576d5c7cf0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存