void OnEdibleEaten(Edible.EdibleType edibleType) { switch (edibleType) { case Edible.EdibleType.Bird: BirdEaten(); break; case Edible.EdibleType.Fish: FishEaten(); break; case Edible.EdibleType.Plane: PlaneEaten(); break; default: break; } }
void OnEdibleEaten(Edible.EdibleType edibleType) { switch (edibleType) { case Edible.EdibleType.Bird: numBirds++; break; case Edible.EdibleType.Fish: numFish++; break; case Edible.EdibleType.Plane: numPlanes++; break; default: break; } }
public Edible_s(Edible edible) : base(Product.type_.edible, edible.uniqueID, edible.objectID, edible.subID, edible.GetName(), edible.productGO.transform.position, edible.productGO.transform.eulerAngles) { edibleType = edible.edibleType; }
public float desiredTHC = 0; // in mg public DesiredEdible() : base(type_.reference, type_.edible) { desiredType = Edible.GetRandomEdibleType(); desiredTHC = UnityEngine.Random.Range(10, 250); }