void AddConstructionIcon() { ISubPool remindPool = ObjectPoolSingleton.Instance.GetPool <ConstructionIcon>(); FloatingIcon icon = remindPool.Take() as FloatingIcon; GameObject go = icon.gameObject; go.transform.parent = floatingIconTrans.transform; go.transform.localPosition = Vector3.zero; }
public IconObjectPair(GameObject obj, FloatingIcon icon) { FollowObject = obj; Icon = icon; }