Пример #1
0
        public void AcquireTargetLock(Action callback)
        {
            AcquireTargetLockSubPhase selectTargetLockSubPhase = (AcquireTargetLockSubPhase)Phases.StartTemporarySubPhaseNew(
                "Select target for Target Lock",
                typeof(AcquireTargetLockSubPhase),
                delegate {
                UI.HideSkipButton();
                Phases.FinishSubPhase(typeof(AcquireTargetLockSubPhase));
                callback();
            });

            selectTargetLockSubPhase.RequiredPlayer = Owner.PlayerNo;
            selectTargetLockSubPhase.Start();
        }
Пример #2
0
        public void ChooseTargetToAcquireTargetLock(Action callback, string abilityName, string imageUrl)
        {
            AcquireTargetLockSubPhase selectTargetLockSubPhase = (AcquireTargetLockSubPhase)Phases.StartTemporarySubPhaseNew(
                "Select target for Target Lock",
                typeof(AcquireTargetLockSubPhase),
                delegate {
                UI.HideSkipButton();
                Phases.FinishSubPhase(typeof(AcquireTargetLockSubPhase));
                callback();
            });

            selectTargetLockSubPhase.RequiredPlayer = Owner.PlayerNo;
            selectTargetLockSubPhase.AbilityName    = abilityName;
            selectTargetLockSubPhase.ImageUrl       = imageUrl;
            selectTargetLockSubPhase.Start();
        }