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

            gameState.nodeChanged.AddListener(OnNodeChanged);
            gameState.selectionOccurs.AddListener(OnSelectionOccurs);
        }
예제 #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);
        }