Beispiel #1
0
 public Player(NetworkPlayer data)
 {
     netInfo = data;
     handManager = Object.FindObjectOfType<GUIHandManager>();
     if (handManager == null)
     { Debug.LogError("No HandManager Found!"); }
 }
Beispiel #2
0
 /// <summary>
 /// Makes sure there is only one Game instance in the scene
 /// </summary>
 void Awake()
 {
     if (instance != null)
     {
         Destroy(this);
     }
     instance = this;
     handManager = Object.FindObjectOfType<GUIHandManager>();
     if (handManager == null)
     { Debug.LogError("Handmanager not found!"); }
 }
Beispiel #3
0
 public Player()
 {
     handManager = Object.FindObjectOfType<GUIHandManager>();
     if (handManager == null)
     { Debug.LogError("No HandManager Found!"); }
 }