GameObject create_icon(StrawberrySingleScore _score, GameSettings.WinCondition _win){ GameObject obj = GameObject.Instantiate(prefab); var component = obj.GetComponent<ScoreStrawberrySingleView>(); component.strawberry = _score; component.win = _win; obj.transform.SetParent(place_icons_here, false); return obj; }
public StrawberrySingleScore copy_from(StrawberrySingleScore that){ ripeness = that.ripeness; weight = that.weight; return this; }