private void Start() { if (StateManagerUI == null) { StateManagerUI = FindObjectOfType <StateManagerUI>(); } }
// Start is called before the first frame update void Start() { if (SelectionController == null) { SelectionController = FindObjectOfType <SelectionController>(); } if (ResetController == null) { ResetController = FindObjectOfType <ResetController>(); } if (StateManagerUI == null) { StateManagerUI = FindObjectOfType <StateManagerUI>(); } SelectionState(); ResetController.OnReset += SelectionState; }