IEnumerator WaittoShowItem(float seconds)
    {
        yield return(new WaitForSeconds(seconds));

        WorldFunktions.FreezeLivingMovement(false);
        Character.m_MovementView.HidePreview();
    }
    public void ShowPickuItem(ItemData Item)
    {
        WorldFunktions.FreezeLivingMovement(true);

        Character.m_MovementView.ShowPreview(Item);

        StartCoroutine(WaittoShowItem(Item.timetoShowAnimation));
    }
Пример #3
0
 public override void OnHit(ItemType item)
 {
     lives--;
     if (lives <= 0)
     {
         WorldFunktions.FreezeLivingMovement(true);
         GetComponentInChildren <SpriteRenderer>().enabled = false;
         Destroy();
     }
 }
Пример #4
0
    private void End()
    {
        WorldFunktions.FreezeLivingMovement(false);

        isShowing = false;

        Visuals.SetActive(false);
        TextObject.enabled = false;
        NextIcon.SetActive(false);

        TextBlockCount = 0;
    }
Пример #5
0
    private void Save(string code, bool isComplex, bool Freeze)
    {
        Visuals.SetActive(true);
        TextObject.enabled = true;

        isShowing = true;
        firsttime = true;

        if (Freeze)
        {
            WorldFunktions.FreezeLivingMovement(true);
        }

        this.isComplex = isComplex;
        rawText        = code;
        Decode();
    }