本文整理汇总了C#中Cat.SetPassengerAttackDenied方法的典型用法代码示例。如果您正苦于以下问题:C# Cat.SetPassengerAttackDenied方法的具体用法?C# Cat.SetPassengerAttackDenied怎么用?C# Cat.SetPassengerAttackDenied使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cat
的用法示例。
在下文中一共展示了Cat.SetPassengerAttackDenied方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowTrainingStep
//.........这里部分代码省略.........
_hero.SetHalfImmortal(true);
break;
case 22:
_grannyPassenger.DisableAttackListener();
_catPassenger.DisableAttackListener();
if (_attackedPassenger != null)
{
DisplayArrowForPassenger((PassengerSM)_attackedPassenger);
}
break;
case 23:
Time.timeScale = 0;
Destroy(_activeArrow);
_shortConductorWindow.DisplayText(StringResources.GetLocalizedString("Training12"), false);
break;
case 24:
_shortConductorWindow.DisplayText(StringResources.GetLocalizedString("Training13"), false);
break;
case 25:
_grannyPassenger.SetDragListenerEnabled(true);
_catPassenger.SetDragListenerEnabled(true);
_killedCounter.SetActive(true);
_shortConductorWindow.DisplayText(StringResources.GetLocalizedString("Training14"), true);
break;
case 26:
Time.timeScale = 1;
_catPassenger.AttackTarget = _grannyPassenger;
break;
case 27:
_grannyPassenger.SetDragListenerEnabled(false);
_grannyPassenger.SetCounterAttackProbability(0);
_catPassenger.SetDragListenerEnabled(false);
_catPassenger.SetConductorAttackDenied(false);
_catPassenger.SetPassengerAttackDenied(true);
_hero.SetAttackListenerActivated();
_catPassenger.AttackTarget = _hero;
break;
case 28:
StartCoroutine(WaitAndMoveNext(1));
break;
case 29:
Time.timeScale = 0;
_lifes.SetActive(true);
_shortConductorWindow.DisplayText(StringResources.GetLocalizedString("Training15"), true);
_catPassenger.SetFlyAwayDenied(false);
_isBonusDropEnabled = true;
_catPassenger.IncreaseBonusProbability();
break;
case 30:
DisplayArrowForPassenger(_catPassenger);
Time.timeScale = 1;
break;
case 31:
Destroy(_activeArrow);
_bonusTimer.ActivateDropListener();
break;
case 32:
StartCoroutine(WaitAndMoveNext(1));
break;
case 33:
Time.timeScale = 0;
_shortConductorWindow.DisplayText(StringResources.GetLocalizedString("Training16"), true);
break;
case 34:
Time.timeScale = 1;
_bonusTimer.ActivateDropListener();