課程
/Unity 3D
/Unity3D快速入門
void LateUpdate()
{
????if(player!=null)
????{
????????...
????}
}
2015-12-07
源自:Unity3D快速入門 3-5
正在回答
個人理解:player是SceneCamera的游戲體類型的公有變量,通過代碼GameObject.Find ("Main Camera").GetComponent<SceneCamera> ().player = this.gameObject;把項目中Player這個Script Component和它關聯。
舉報
本課程為Unity 3D入門教程,快速學會用Unity開發游戲
1 回答請問這里SceneCamera中的player怎么定義來的?
1 回答新的player
2 回答如何用聲音的輸入控制player
2 回答在player向右狀態設置問題
2 回答player腳本連接不到上去gameobject
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-12-07
個人理解:player是SceneCamera的游戲體類型的公有變量,通過代碼GameObject.Find ("Main Camera").GetComponent<SceneCamera> ().player = this.gameObject;把項目中Player這個Script Component和它關聯。