void Awake() { gm = GameObject.Find("GameManager").GetComponent <GameManager>(); um = GameObject.Find("GameManager").GetComponent <UIManager>(); ts = GameObject.Find("GameManager").GetComponent <TimeSystems>(); CreateItem(); }
void Start() { um = GetComponent <UIManager>(); tms = GetComponent <TimeSystems>(); }