Esempio n. 1
0
    // Update is called once per frame
    void Update()
    {
        if (ItemManager.Instance.CollectionCount <= 0)
        {
            isNaked = true;
        }
        else
        {
            isNaked = false;
        }

        if (isStop)
        {
            StopTimeCount();
        }
        if (ItemManager.Instance.CollectionCount > 0)
        {
            var spriteName = ItemManager.Instance.GetItemData().sprite.name;
            if (spriteName == "Costume01_Gray")
            {
                playerCostume = PlayerCostume.Costume01;
            }
            else if (spriteName == "Costume02_Gray")
            {
                playerCostume = PlayerCostume.Costume02;
            }
            else
            {
                playerCostume = PlayerCostume.Normal;
            }
            //Debug.Log(playerCostume);
        }
        GetInput();
        text.text = nowStamina.ToString();
        PlayerStaminaManager();
    }