浏览代码

Handle Physics2D module

/refactor-handle-modules
Thomas ICHÉ 3 年前
当前提交
f4448607
共有 3 个文件被更改,包括 13 次插入2 次删除
  1. 9
      Runtime/GameplayIngredients.asmdef
  2. 4
      Runtime/LevelScripting/Events/OnCollider2DEvent.cs
  3. 2
      Runtime/LevelScripting/Events/OnTrigger2DEvent.cs

9
Runtime/GameplayIngredients.asmdef


{
"name": "GameplayIngredients",
"rootNamespace": "",
"references": [
"NaughtyAttributes.Core",
"Cinemachine",

"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"versionDefines": [
{
"name": "com.unity.modules.physics2d",
"expression": "1.0.0",
"define": "MODULE_PHYSICS2D"
}
],
"noEngineReferences": false
}

4
Runtime/LevelScripting/Events/OnCollider2DEvent.cs


using NaughtyAttributes;
#if MODULE_PHYSICS2D
using NaughtyAttributes;
using UnityEngine;
namespace GameplayIngredients.Events

}
}
}
#endif

2
Runtime/LevelScripting/Events/OnTrigger2DEvent.cs


#if MODULE_PHYSICS2D
using NaughtyAttributes;
using UnityEngine;

}
}
}
#endif
正在加载...
取消
保存