Esempio n. 1
0
    public void InitializeScoreText(Balloon.Player newOwner, Balloon balloon)
    {
        owner     = newOwner;
        holdScore = balloon.GetBalloonScore();

        string str;

        if (holdScore >= 0)
        {
            str = '+' + holdScore.ToString();
        }
        else
        {
            str = holdScore.ToString();
        }
        var images = UIResourceController.DisplayNumImage(transform,
                                                          str,
                                                          Balloon.GetColorByBalloonType(balloon.PresentBallonType),
                                                          spaceInterval,
                                                          true);

        Destroy(images[0].transform.parent.gameObject, life);
    }