private void Awake() { if (s != null) { Debug.LogError(string.Format("More than one singleton copy of {0} is detected! this shouldn't happen.", this.ToString())); } s = this; }
// Start is called before the first frame update void Start() { coms = transform.parent.GetComponentInChildren <Player_CommsController>(); UpdateMoneyText(); SetUpPanels(); }