Photon Unity Networking 2  v2.1
English | 日本語 | 한국
Public Member Functions | Public Attributes | List of all members
MoveByKeys Class Reference

WASDとSpaceによってGameObjectを移動するための非常に基本的なコンポーネントです。 More...

Inherits MonoBehaviourPun.

Public Member Functions

void Start ()
 
void FixedUpdate ()
 

Public Attributes

float Speed = 10f
 
float JumpForce = 200f
 
float JumpTimeout = 0.5f
 

Additional Inherited Members

- Properties inherited from MonoBehaviourPun
PhotonView photonView [get]
 このGameObjectのPhotonViewへのキャッシュされた参照。 More...
 

Detailed Description

WASDとSpaceによってGameObjectを移動するための非常に基本的なコンポーネントです。

PhotonViewが必要です Startに所有されていないGameObjectsで自身を無効にします。

速度は移動速度に影響します。 JumpForceは、オブジェクトが "ジャンプ"する高さを定義します。 JumpTimeoutは何秒後に再びジャンプできるかを定義します。