Unity3d添加簡單人物移動

首先在場景中添加一個cube。 並對其添加一個character controller 組件。因爲character controller組件中包含碰撞體,所以可以將原本的collider刪除掉。 然後對其添加一個c# script 組件用於編寫代碼。 其c#代碼編寫如下所示。 using System.Collections; using System.Collections.Generic;
相關文章
相關標籤/搜索