示例#1
0
    void PeanutButterSpawner()
    {
        PeanutButter prefab = peanutButterPlayer[Random.Range(0, peanutButterPlayer.Length)];
        PeanutButter spawn  = Instantiate <PeanutButter>(prefab);

        spawn.transform.localPosition = transform.position;
    }
示例#2
0
        public void UpdatePeanutButter(PeanutButter peanutButter)
        {
            RepositoryContext context = InitializeContext();
            var result = context.PeanutButters.Find(peanutButter.PeanutButterId);

            if (result != null)
            {
                context.SaveChanges();
            }
            context.Dispose();
        }
示例#3
0
 void CreateAndSpawn()
 {
     PeanutButter spawnerPB = Instantiate <PeanutButter>(pbSpawnPrefab);
 }
示例#4
0
 public static Sandwich Create(PeanutButter peanutButter, Jelly jelly)
 {
     Implementation.Do();
     return(new Sandwich(peanutButter, jelly));
 }
示例#5
0
 private Sandwich(PeanutButter peanutButter, Jelly jelly)
 {
 }