Unity2D:2.基於狀態的簡易2D人物移動

使用了枚舉來表示狀態,方便添加功能,提升代碼可讀性:web 代碼以下:svg using System.Collections; using System.Collections.Generic; using UnityEngine; public class player1 : MonoBehaviour { /// <summary> /// 人物速度 ///
相關文章
相關標籤/搜索