示例#1
0
    public static Herb Factory(int cellID, Herbs type)
    {
        Herb herb = Herb.Factory(type);

        herb.Cell = Cell.FromId(cellID);
        return(herb);
    }
示例#2
0
 protected void OnDestroy()
 {
     if (quitting)
     {
         return;
     }
     if (GameManager.instance.CurrentPlayer == GameManager.instance.MainHero)
     {
         Herb.Factory(Cell.Index);
     }
     base.OnDestroy();
 }
示例#3
0
 public static Herb Factory(int cellID)
 {
     return(Herb.Factory(cellID, Herbs.Herb3));
 }
示例#4
0
 public static Herb Factory()
 {
     return(Herb.Factory(Herbs.Herb3));
 }