Godot/Unity3D System Design Architecture
CN: ScriptableEvent&Property 整理 CN: UIKit 重复的 LoadPanelPrefab 代码删除 (高跟鞋、NormalKatt 提供反馈)
EN: ScriptableEvent&Property code management EN: UIKit remove repeat code of LoadPanelPrefab (gaogenxie、NormalKatt feedback)
CN: QFramework.cs:新增 AbstractCommand<TResult> 和示例 CN: FluentAPI 新增 StringJoin 和 API 文档 CN: ListPool 重复释放异常支持(于大进 反馈)
EN: QFramework.cs: add AbstractCommand<TResult> and example EN: FluentAPI add StringJoin and API doc EN: ListPool throw exception when recycle repeatly(feedback by Yu)
AcitonKit.Lerp
ActionKit.Lerp(0, 360, 5.0f, (v) =>
{
this.Rotation(Quaternion.Euler(0, 0, v));
}).Start(this);
GetAndRemoveRandomItem
var randomList = new List<int>(){ 1,2,3,4,5};
var randomItem = randomList .GetAndRemoveRandomItem();
Debug.Log(randomList.Count);
// 4
var cos = (90.0f * Mathf.Deg2Rad).Cos();
// cos is 0f
var sin = (90.0f * Mathf.Deg2Rad).Sin();
// sin is 1f
var cos = 90.0f.CosAngle();
// cos is 0f
var sin = 90.0f.SinAngle();
// sin is 1f
var radius = 90.0f.Deg2Rad();
// radius is 1.57f
var degree = 1.57f.Rad2Deg();
// degree is 90f
var vec3 = new Vector2(1,1).ToVector3();
// vec3 is (1,1,0)
vec3 = new Vector2(1,1).ToVector3(1);
// vec3 is (1,1,1)