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); }
public void AddScore(int score, Score.EType type, Vector3 position) { addScore += score; ShowScore(score, type, position); }