Exemple #1
0
        private void Start()
        {
            gameState          = Utils.FindNovaGameController().GameState;
            saveViewController = Utils.FindViewManager().GetController <SaveViewController>();

            gameState.nodeChanged.AddListener(OnNodeChanged);
            gameState.selectionOccurs.AddListener(OnSelectionOccurs);
        }
Exemple #2
0
        private void Start()
        {
            gameState          = Utils.FindNovaGameController().GameState;
            checkpointManager  = Utils.FindNovaGameController().CheckpointManager;
            saveViewController = GetComponent <SaveViewController>();

            gameState.BranchOccurs += OnBranchOccurs;

            saveViewController.bookmarkSave.AddListener(OnBookmarkSave);
            saveViewController.bookmarkLoad.AddListener(OnBookmarkLoad);
            saveViewController.bookmarkDelete.AddListener(OnBookmarkDelete);
        }