void PeanutButterSpawner() { PeanutButter prefab = peanutButterPlayer[Random.Range(0, peanutButterPlayer.Length)]; PeanutButter spawn = Instantiate <PeanutButter>(prefab); spawn.transform.localPosition = transform.position; }
public void UpdatePeanutButter(PeanutButter peanutButter) { RepositoryContext context = InitializeContext(); var result = context.PeanutButters.Find(peanutButter.PeanutButterId); if (result != null) { context.SaveChanges(); } context.Dispose(); }
void CreateAndSpawn() { PeanutButter spawnerPB = Instantiate <PeanutButter>(pbSpawnPrefab); }
public static Sandwich Create(PeanutButter peanutButter, Jelly jelly) { Implementation.Do(); return(new Sandwich(peanutButter, jelly)); }
private Sandwich(PeanutButter peanutButter, Jelly jelly) { }