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(); }
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(); }