public void AddTip(float _time, string _text) { GameObject obj = Instantiate(tip_prefab, transform); Tip tip = obj.GetComponent <Tip>(); tip.Init(this); tip.SetTime(_time); tip.SetText(_text); obj.SetActive(false); object_pool.Enqueue(obj); }