Esempio n. 1
0
        // --- Properties -------------------------------------------------------------------------------

        // --- MonoBehaviour ----------------------------------------------------------------------------
        // -----------------------------------------------------------------------------------
        // --- Methods ----------------------------------------------------------------------------------
        // -----------------------------------------------------------------------------------
        /// <summary>
        /// Shows the "+X,XXX PTS" effect. position is in world coordinates
        /// </summary>
        public void ShowScore(int score, Vector3 position)
        {
            TextMeshEffect tme = Instantiate(textMeshEffect, transform, true);

            tme.gameObject.SetActive(true);
            tme.Show(string.Format("+{0:###,###,##0}<size=10>    </size>PTS", score), position);
        }
Esempio n. 2
0
        // -----------------------------------------------------------------------------------
        /// <summary>
        /// Shows the extra life effect
        /// </summary>
        /// <param name="position">Where to show it, in world coordinates</param>
        public void ShowExtraLife(Vector3 position)
        {
            TextMeshEffect tme = Instantiate(textMeshEffect, transform, true);

            tme.gameObject.SetActive(true);
            position.z = -5;
            tme.Show(" <size=300>1UP!</size>", position);
        }