Пример #1
0
 public void Extinguish()
 {
     if (_mallowState == Marshmallow.MallowState.Burning)
     {
         _fireRenderer.enabled = false;
         _mallowState          = Marshmallow.MallowState.Default;
     }
 }
Пример #2
0
 public void RemoveMallow()
 {
     _smokeParticles.Stop();
     _fireRenderer.enabled   = false;
     _mallowRenderer.enabled = false;
     _mallowState            = Marshmallow.MallowState.Gone;
     enabled = false;
 }
Пример #3
0
 public void Shrivel()
 {
     if (_mallowState == Marshmallow.MallowState.Burning)
     {
         _initShrivelTime = Time.time;
         _mallowState     = Marshmallow.MallowState.Shriveling;
     }
 }
Пример #4
0
 public void Burn()
 {
     if (_mallowState == Marshmallow.MallowState.Default)
     {
         _fireRenderer.enabled = true;
         _toastedFraction      = 1f;
         _initBurnTime         = Time.time;
         _mallowState          = Marshmallow.MallowState.Burning;
     }
 }
Пример #5
0
 public void SpawnMallow()
 {
     transform.localPosition = new Vector3(0f, 0f, 0.3f);
     transform.localScale    = Vector3.one;
     _smokeParticles.Stop();
     _fireRenderer.enabled   = false;
     _toastedFraction        = 0f;
     _mallowRenderer.enabled = true;
     _mallowState            = Marshmallow.MallowState.Default;
     enabled = true;
 }
Пример #6
0
 public static bool Marshmallow_Shrivel(
     ref Marshmallow.MallowState ____mallowState,
     ref float ____initShrivelTime)
 {
     if (____mallowState == Marshmallow.MallowState.Burning)
     {
         ____initShrivelTime = Time.time;
         ____mallowState     = Marshmallow.MallowState.Shriveling;
         QSBEventManager.FireEvent(EventNames.QSBMarshmallowEvent, MarshmallowEventType.Shrivel);
     }
     return(false);
 }
Пример #7
0
 public static bool Marshmallow_RemoveMallow(
     ParticleSystem ____smokeParticles,
     MeshRenderer ____fireRenderer,
     MeshRenderer ____mallowRenderer,
     ref Marshmallow.MallowState ____mallowState,
     Marshmallow __instance)
 {
     ____smokeParticles.Stop();
     ____fireRenderer.enabled   = false;
     ____mallowRenderer.enabled = false;
     ____mallowState            = Marshmallow.MallowState.Gone;
     __instance.enabled         = false;
     QSBEventManager.FireEvent(EventNames.QSBMarshmallowEvent, MarshmallowEventType.Remove);
     return(false);
 }
Пример #8
0
 public static bool Marshmallow_Burn(
     ref Marshmallow.MallowState ____mallowState,
     MeshRenderer ____fireRenderer,
     ref float ____toastedFraction,
     ref float ____initBurnTime,
     PlayerAudioController ____audioController)
 {
     if (____mallowState == Marshmallow.MallowState.Default)
     {
         ____fireRenderer.enabled = true;
         ____toastedFraction      = 1f;
         ____initBurnTime         = Time.time;
         ____mallowState          = Marshmallow.MallowState.Burning;
         ____audioController.PlayMarshmallowCatchFire();
         QSBEventManager.FireEvent(EventNames.QSBMarshmallowEvent, MarshmallowEventType.Burn);
     }
     return(false);
 }