Ejemplo n.º 1
0
 public InteractionResult Plant(Seed s)
 {
     if (plant == null)
     {
         plant = Instantiate <Plant>(s.plant, transform);
         planterReg.RegisterPlant(plant);
         return(new InteractionResult(null, true));
     }
     return(new InteractionResult(s, false));
 }