private void Start() { m_MovesManager = FindObjectOfType <MovesManager>(); m_StartButton.onClick.AddListener(() => StartGame(true)); m_LoadButton.onClick.AddListener(() => StartGame(false)); m_LoadButton.interactable = SaveManager.HasSave(SaveHandler.FileName, out var temp); OnClick(1); }
private void Awake() { button = GetComponent <Button>(); movesManager = FindObjectOfType <MovesManager>(); button.onClick.AddListener(movesManager.NextStage); }
private void Awake() { movesManager = FindObjectOfType <MovesManager>(); }
private void Awake() { m_MovesManager = FindObjectOfType <MovesManager>(); m_Grid = FindObjectOfType <GridCreator>(); }