Photon Unity Networking 2
2.12
|
MoveByKeys Class Reference
Very basic component to move a GameObject by WASD and Space. 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] |
A cached reference to a PhotonView on this GameObject. More... | |
Detailed Description
Very basic component to move a GameObject by WASD and Space.
Requires a PhotonView. Disables itself on GameObjects that are not owned on Start.
Speed affects movement-speed. JumpForce defines how high the object "jumps". JumpTimeout defines after how many seconds you can jump again.