Beispiel #1
0
 public void Done()
 {
     done = true;
     transform.GetChild(0).gameObject.SetActive(true);
     expectedCount = temp2.expectedProgress;
     type          = temp2.type;
 }
Beispiel #2
0
    private void ChangeDelayAndChance(NoodleTypes.types type)
    {
        spawner.DivideDelay(1.5f);
        ItemSpawnChance item = spawner.FindNoodleByType(type);
        float           sub  = item.Done(1.5f);

        spawner.AddChanceToUnDoneNoodles(sub);
    }
Beispiel #3
0
 public ItemSpawnChance FindNoodleByType(NoodleTypes.types type)
 {
     foreach (var item in noodlePrefabs)
     {
         if (item.prefab.GetComponent <Noodle>().noodleType == type)
         {
             return(item);
         }
     }
     return(null);
 }
Beispiel #4
0
 public void SetType(Bowl temp)
 {
     type = temp.type;
 }