Skip to content

Instantly share code, notes, and snippets.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon;
public class NetworkPlayer : Photon.MonoBehaviour
{
float lerpSmoothing = 5f;
float updateTime = 0f;
private Vector3 correctPlayerPos;
// Converted from UnityScript to C# at http://www.M2H.nl/files/js_to_c.php - by Mike Hergaarden
// Do test the code! You usually need to change a few small bits.
using UnityEngine;
public class biker_logic_mecanim : MonoBehaviour
{
/// Writen by Boris Chuprin smokerr@mail.ru
private Animator myAnimator;
// Converted from UnityScript to C# at http://www.M2H.nl/files/js_to_c.php - by Mike Hergaarden
// Do test the code! You usually need to change a few small bits.
using UnityEngine;
using System.Collections;
public class biker_logic_mecanim : MonoBehaviour
{
/// Writen by Boris Chuprin smokerr@mail.ru
// Converted from UnityScript to C# at http://www.M2H.nl/files/js_to_c.php - by Mike Hergaarden
// Do test the code! You usually need to change a few small bits.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class skidMark : MonoBehaviour
{
if (photonView.isMine) {
myCamera.SetActive (true);
}
else
{
transform.position = Vector3.Lerp(transform.position, correctPlayerPos, Time.deltaTime * updateTime);
transform.rotation = Quaternion.Lerp(transform.rotation, correctPlayerRot, Time.deltaTime * updateTime);
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Photon;
public class NetworkPlayer : PunBehaviour {
private keyboardControls m_bikeInput;
bool isAlive = true;
public GameObject myCamera;
private Rigidbody rb;