Beispiel #1
0
            /// <summary>
            /// スコアー更新
            /// </summary>
            /// <param name="Score"></param>
            /// <returns></returns>
            public IScore UpdateScore(int Score)
            {
                if (IsCreated)
                {
                    CacheScore = CacheScore.UpdateScore(Score);

                    return(CacheScore);
                }

                throw new NullReferenceException("キャッシュが生成されてないです");
            }
    //This is called when the collectible has been picked up
    public void CollectibleTake()
    {
        if (AudioManager.Instance)
        {
            AudioManager.Instance.PlaySound("PickUp");
        }

        m_gInGameCollectible.transform.position = m_vec3OutBound;
        m_RefScoreHandler.UpdateScore(1);

        if (m_coTimer != null)
        {
            StopCoroutine(m_coTimer);
            m_coTimer = null;
        }

        if (m_coInterval == null)
        {
            m_coInterval = StartCoroutine(CollectibleInterval());
        }
    }