public static void Execute()
        {
            Panel_Cooking  panel_Cooking  = InterfaceManager.m_Panel_Cooking;
            GearItem       cookedItem     = panel_Cooking.GetSelectedFood();
            CookingPotItem cookingPotItem = panel_Cooking.m_CookingPotInteractedWith;

            GearItem result = cookedItem.Drop(1, false, true);

            CookingModifier cookingModifier = ComponentUtils.GetOrCreateComponent <CookingModifier>(result);

            cookingModifier.additionalMinutes = result.m_Cookable.m_PotableWaterRequiredLiters * panel_Cooking.m_MinutesToMeltSnowPerLiter;
            cookingModifier.Apply();

            GameAudioManager.Play3DSound(result.m_Cookable.m_PutInPotAudio, cookingPotItem.gameObject);
            cookingPotItem.StartCooking(result);
            panel_Cooking.ExitCookingInterface();
        }
Esempio n. 2
0
 private static void Postfix(PlayAkSound __instance)
 {
     GameAudioManager.Play3DSound(__instance.soundName, __instance.gameObject);
 }
Esempio n. 3
0
 internal void OnExplode()
 {
     GameAudioManager.Play3DSound(this.explosionAudio, this.gameObject);
     GameManager.GetConditionComponent().AddHealth(-1 * GetDamageToPlayer(), DamageSource.Unspecified);
     Destroy(this.gameObject);
 }
Esempio n. 4
0
 public void OnEnable()
 {
     GameAudioManager.Play3DSound(this.soundName, this.gameObject);
 }