浏览代码

simplify UI code

/main
Laurent 5 年前
当前提交
308eff58
共有 1 个文件被更改,包括 1 次插入11 次删除
  1. 12
      Runtime/LevelScripting/Actions/RigidbodyAction.cs

12
Runtime/LevelScripting/Actions/RigidbodyAction.cs


private void OnParameterTypeChanged()
{
force = false;
force = (actionType == RigidbodyActionType.Force || RigidbodyActionType.Torque);
switch (actionType)
{
case RigidbodyActionType.Force:
force = true;
break;
case RigidbodyActionType.Torque:
force = true;
break;
}
}
}
}
正在加载...
取消
保存