public void SetPlant(string name, GameObject obj, GameObject pos, float plus) { plantname = name; plantobj = Instantiate(obj, pos.transform); GrowthPlus = plus; statas = PlantStatas.NotGrowth; }
public void ResetPlant() { plantname = "空"; Destroy(plantobj); GrowthPlus = 0; growth = 0; statas = PlantStatas.None; }
public void SetPlant(Plant pl, GameObject pos) { if (pl == null) { Debug.Log("null"); } plantname = pl.plantname; plantobj = Instantiate(pl.plantobj, pos.transform); GrowthPlus = pl.GrowthPlus; growth = 0; statas = PlantStatas.NotGrowth; harvestItem = pl.harvestItem; harvestPlValue = pl.harvestPlValue; }
public Plant() { statas = PlantStatas.None; growth = 0f; }