예제 #1
0
 public void SetPlant(string name, GameObject obj, GameObject pos, float plus)
 {
     plantname  = name;
     plantobj   = Instantiate(obj, pos.transform);
     GrowthPlus = plus;
     statas     = PlantStatas.NotGrowth;
 }
예제 #2
0
 public void ResetPlant()
 {
     plantname = "空";
     Destroy(plantobj);
     GrowthPlus = 0;
     growth     = 0;
     statas     = PlantStatas.None;
 }
예제 #3
0
 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;
 }
예제 #4
0
 public Plant()
 {
     statas = PlantStatas.None;
     growth = 0f;
 }