public Player(NetworkPlayer data) { netInfo = data; handManager = Object.FindObjectOfType<GUIHandManager>(); if (handManager == null) { Debug.LogError("No HandManager Found!"); } }
/// <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!"); } }
public Player() { handManager = Object.FindObjectOfType<GUIHandManager>(); if (handManager == null) { Debug.LogError("No HandManager Found!"); } }