本文整理汇总了C#中Gnome.SetDragDenied方法的典型用法代码示例。如果您正苦于以下问题:C# Gnome.SetDragDenied方法的具体用法?C# Gnome.SetDragDenied怎么用?C# Gnome.SetDragDenied使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gnome
的用法示例。
在下文中一共展示了Gnome.SetDragDenied方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ShowTrainingStep
private void ShowTrainingStep(int step)
{
switch (step)
{
case 0:
if (IsTrainingFinished())
{
gameObject.SetActive(false);
return;
}
_benches = GameObject.Find("benches");
_benches.SetActive(false);
_isBonusDropEnabled = false;
_doorsTimer.SetActive(false);
_ticketsCounter.SetActive(false);
_haresCounter.SetActive(false);
_killedCounter.SetActive(false);
_lifes.SetActive(false);
_bonusSelectWindow.SetActive(false);
_isPassengerClickAllowed = false;
_centralWayout.SetActive(false);
_centralWayoutSprite.SetActive(false);
_bonusesUI.SetActive(false);
_megabonusUI.SetActive(false);
_bonusButton.SetVisible(false);
Time.timeScale = 0;
_doorsTimerController.SetMoveAndStopDuration(3, 1);
_doorsTimerController.SetMovementLocked(true);
_fullConductorWindow.DisplayText(StringResources.GetLocalizedString("Training1"), false);
break;
case 1:
_fullConductorWindow.DisplayTextWithImage(StringResources.GetLocalizedString("Training2"), Resources.Load<Sprite>("Sprites/training/training1"), false);
break;
case 2:
_fullConductorWindow.DisplayText(StringResources.GetLocalizedString("Training3"), true);
break;
case 3:
Time.timeScale = 1;
SpawnPassengerFromRandomDoor("gnome", Spawner.TicketAdditionMode.WithTicket);
StartCoroutine(WaitAndMoveNext(2));
break;
case 4:
Time.timeScale = 0;
_shortConductorWindow.DisplayText(StringResources.GetLocalizedString("Training4"), true);
GameObject gnomeObject = GameObject.Find("gnome(Clone)");
_gnomePassenger = gnomeObject.GetComponent<Gnome>();
_gnomePassenger.SetAttackEnabled(false);
_gnomePassenger.SetFlyAwayDenied(true);
_gnomePassenger.SetDragDenied(true);
DisplayArrowForPassenger(_gnomePassenger);
_isPassengerClickAllowed = true;
break;
case 5:
Time.timeScale = 1;
_ticketsCounter.SetActive(true);
break;
case 6:
Time.timeScale = 0;
Destroy(_activeArrow);
_doorsTimer.SetActive(true);
_shortConductorWindow.DisplayText(StringResources.GetLocalizedString("Training5"), true);
break;
case 7:
Time.timeScale = 1;
_doorsTimerController.SetMovementLocked(false);
StartCoroutine(WaitAndMoveNext(2));
break;
case 8:
SpawnPassengerFromRandomDoor("bird", Spawner.TicketAdditionMode.WithoutTicket);
GameObject bird = GameObject.Find("bird(Clone)");
_birdPassenger = bird.GetComponent<Bird>();
_birdPassenger.SetFlyAwayDenied(true);
_birdPassenger.SetAttackEnabled(false);
_birdPassenger.SetRunawayDenied(true);
DisplayArrowForPassenger(_birdPassenger);
_doorsTimerController.SetMovementLocked(true);
break;
case 9:
Time.timeScale = 0;
Destroy(_activeArrow);
_doorsTimer.SetActive(true);
_shortConductorWindow.DisplayText(StringResources.GetLocalizedString("Training6"), true);
break;
case 10:
_centralWayout.SetActive(true);
_centralWayoutSprite.SetActive(true);
DisplayArrow(_centralWayout);
Time.timeScale = 1;
_floor.AddDragCenterListner(_birdPassenger.name);
break;
case 11:
Time.timeScale = 0;
Destroy(_activeArrow);
_shortConductorWindow.DisplayText(StringResources.GetLocalizedString("Training7"), true);
break;
case 12:
Time.timeScale = 1;
_birdPassenger.SetRunawayDenied(false);
_birdPassenger.SetFlyAwayDenied(false);
_birdPassenger.ActivateFlyAwayListener();
//.........这里部分代码省略.........