Boat Attack使用了Universal RP的许多新图形功能,可以用于探索 Universal RP 的使用方式和技巧。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

21 行
857 B

using Unity.Entities;
using UnityEngine;
using WaterSystem;
namespace Unity.Physics.Authoring
{
// IConvertGameObjectToEntity pipeline is called before the Physics Body & Shape Conversion Systems
// This means that there would be no Physics components created when Convert was called.
// Instead Convert is called from this specific ConversionSystem for any component that may need
// to read or write the various Physics components at conversion time.
[UpdateAfter(typeof(PhysicsBodyConversionSystem))]
[UpdateAfter(typeof(LegacyRigidbodyConversionSystem))]
public class PhysicsConversionSystem : GameObjectConversionSystem
{
// Update is called once per frame
protected override void OnUpdate()
{
Entities.ForEach((BuoyantObject_DOTS behaviour) => { behaviour.Convert(GetPrimaryEntity(behaviour), DstEntityManager, this); });
}
}
}