public void Planter(LegumeManager.Type type) { if (!Legume) { GameObject legumePrefab = LegumeManager.GetInstance().GetLegumeInfo(type).m_Prefab; GameObject legume = Instantiate(legumePrefab); legume.name = type.ToString(); legume.transform.SetParent(LegumePosition, false); Legume = legume.GetComponent <Legume>(); Legume.M_Cellule = this; } }
public void Supprimer() { Destroy(Legume.gameObject); Legume = null; }
public Buff(LegumeManager.BuffInfo info, Legume origin) { Info = info; Origin = origin; }