Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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>();
 }