public static Herb Factory(int cellID, Herbs type) { Herb herb = Herb.Factory(type); herb.Cell = Cell.FromId(cellID); return(herb); }
protected void OnDestroy() { if (quitting) { return; } if (GameManager.instance.CurrentPlayer == GameManager.instance.MainHero) { Herb.Factory(Cell.Index); } base.OnDestroy(); }
public static Herb Factory(int cellID) { return(Herb.Factory(cellID, Herbs.Herb3)); }
public static Herb Factory() { return(Herb.Factory(Herbs.Herb3)); }