示例#1
0
        void Update()
        {
            if (!isInitialized)
            {
                return;
            }

            if (label.gameObject.activeInHierarchy)
            {
                WaitAfterSeconds(1f, () => {
                    label.gameObject.SetActive(false);
                }).StartAsCoroutine();
            }

            SetHpBar().StartAsCoroutine();

            healItemManager.AddElapsedTime(Time.deltaTime);
            healItemManager.TrySetRecoverHpItem(playerCharacter.GetHpRate(), enemyCharacter.GetHpRate());
        }