Munchy2007

CNetManagerPlayer

May 9th, 2016
3,553
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3. using UnityEngine.Networking;
  4.  
  5. public class Player : NetworkBehaviour {
  6.  
  7.     // Use this for initialization
  8.     void Start () {
  9.    
  10.     }
  11.    
  12.     // Update is called once per frame
  13.     void Update () {
  14.         if(isLocalPlayer)
  15.         {
  16.             transform.Rotate(0,20 * Time.deltaTime,0);
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment