using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.Networking;
|
|
|
|
|
|
namespace Multiplayer
|
|
{
|
|
|
|
public class Player
|
|
{
|
|
|
|
public byte ID;
|
|
|
|
public NetworkConnection Connection;
|
|
|
|
public Vector3 Position { get; private set; }
|
|
public Quaternion Rotation { get; private set; }
|
|
|
|
public string Name { get; private set; }
|
|
|
|
|
|
public Player(NetworkConnection Connection, string Name)
|
|
{
|
|
this.ID = (byte)Connection.connectionId;
|
|
this.Connection = Connection;
|
|
this.Name = Name;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
}
|