Пример #1
0
    void ShowScore(int score, Score.EType type, Vector3 position)
    {
        if (scorePool.Count == 0)
        {
            MakeScore(MakeScoreCount);
        }

        var script = scorePool.First.Value;

        scorePool.RemoveFirst();

        script.gameObject.SetActive(true);
        script.Init(type, score);
        script.transform.position = position;
        activeScoreList.AddLast(script);
    }
Пример #2
0
 public void AddScore(int score, Score.EType type, Vector3 position)
 {
     addScore += score;
     ShowScore(score, type, position);
 }