C# Class HoloToolkit.Examples.SharingWithUNET.PlayerController

Inheritance: NetworkBehaviour, IInputClickHandler
显示文件 Open project: Microsoft/HoloToolkit-Unity

Public Properties

Property Type Description
bullet UnityEngine.GameObject

Public Methods

Method Description
OnSelect ( ) : void

Called by the gesture manager when an airtap is seen.

OnStartLocalPlayer ( ) : void

Called when the local player starts. In general the side effect should not be noticed as the players' avatar is always rendered on top of their head.

Private Methods

Method Description
CmdFire ( ) : void
CmdTransform ( Vector3 postion, Quaternion rotation ) : void
Start ( ) : void
Update ( ) : void

Method Details

OnSelect() public method

Called by the gesture manager when an airtap is seen.
public OnSelect ( ) : void
return void

OnStartLocalPlayer() public method

Called when the local player starts. In general the side effect should not be noticed as the players' avatar is always rendered on top of their head.
public OnStartLocalPlayer ( ) : void
return void

Property Details

bullet public_oe property

The game object that represents the 'bullet' for this player. Must exist in the spawnable prefabs on the NetworkManager.
public GameObject,UnityEngine bullet
return UnityEngine.GameObject