public void ManuallySendInput(PlayerControlMessage i) { CmdReceiveInput (i); }
public float GetLastTimeStamp(PlayerControlMessage targetControl) { return inputTimeStamps [(int)(targetControl)]; }
void CmdReceiveInput(PlayerControlMessage i) { inputTimeStamps [(int)i] = Time.time; //process //UIConsole.Log ("Received input " + i.ToString ()); ProcessInputMessage (i); if (OnServerReceiveRawInput != null) OnServerReceiveRawInput (i, new Vector3(0,0,0)); }
void ProcessInputMessage(PlayerControlMessage i) { int intCast = (int)i; inputValues [intCast / 2] = (intCast % 2 == 0); }
void CmdReceiveDirectionShootInput(PlayerControlMessage i, Vector3 cameraDirection) { inputTimeStamps [(int)i] = Time.time; _storedCameraDirection = cameraDirection; ProcessInputMessage (i); if (OnServerReceiveRawInput != null) OnServerReceiveRawInput (i, cameraDirection); //GetComponent<PlayerCaptionController> ().RpcPushCaption ("I know you pressed space",2f); }