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;
    }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     coms = transform.parent.GetComponentInChildren <Player_CommsController>();
     UpdateMoneyText();
     SetUpPanels();
 }