Пример #1
0
    public IEnumerator Missing()
    {
        DestroyAllItems();
        DestroyAllBullets();
        yield return(new WaitForSeconds(0.05f));

        signalManager.StopAllSignalsWithoutReplayMode();
        SetDialogStatus(0);
        if (signalManager.IsActiveReplayMode())
        {
            replayTelop.SetActive(true);
            theBall.DiminishForReplay();
            AddJackpotScore(10);
        }
        else if (currentStage.IsLevelUpFailZone())
        {
            LevelUp();
        }
        else
        {
            AddJackpotScore(50);
            missTelop.SetActive(true);
            theBall.DiminishForMissing();
        }
    }
Пример #2
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.gameObject.tag == "Ball" && !signalManager.IsActiveReplayMode())
     {
         bonusStageSystem.OnTriggerFailZoneBall();
     }
     if (collision.gameObject.tag == "Item")
     {
         if (collision.gameObject.GetComponent <Item>().GetItemCode() == 7)
         {
             bonusStageSystem.OnTriggerFailZoneExtraBall();
         }
     }
 }
Пример #3
0
    public IEnumerator Return()
    {
        face.ChangeFace(1);

        gameObjectBigBar.SetActive(false);
        gameObjectBlockGenerator.SetActive(false);
        gameObjectPrecipitate.SetActive(false);

        float velocityX = gameObjectBody.transform.position.x / -2.0f;
        float velocityY = (gameObjectBody.transform.position.y - 240.0f) / -2.0f;

        body.SetVelocity(velocityX, velocityY);
        for (int i = 0; i < 100; i++)
        {
            yield return(new WaitForFixedUpdate());
        }
        if (signalManager.IsActiveReplayMode())
        {
            motionCode--;
        }
        SetIdle();
    }