public void Activate(LiquidContainer container, LiquidSource liquid_source) { this.m_Container = container; this.m_Container.StaticPhxRequestAdd(); this.m_LiquidSource = liquid_source; base.transform.position = Input.mousePosition; this.UpdateSelection(); this.m_Active = true; }
public bool Activate(LiquidSource source) { this.ResetItems(); this.m_LiquidSource = source; this.ClearSlots(); this.AddSlot(HUDItem.Action.Drink); this.AddSlot(HUDItem.Action.Fill); this.Activate(); return(true); }
public void TakeLiquid(LiquidSource source) { if (!this.m_Container) { this.m_Container = (ItemsManager.Get().CreateItem(ItemID.Water_In_Hands, false, Vector3.zero, Quaternion.identity) as LiquidContainer); this.m_Scale = this.m_Container.transform.localScale; } this.m_Container.Fill(source); Player.Get().SetWantedItem(Hand.Right, this.m_Container, true); this.m_LastMoveSpill = Time.time; this.m_MoveSpillInterval = UnityEngine.Random.Range(this.m_MoveSpillIntervalMin, this.m_MoveSpillIntervalMax); }
public void Fill(LiquidSource liquid_source) { if (this.m_LCInfo.m_LiquidType != liquid_source.m_LiquidType) { if (this.m_LCInfo.m_Amount > 0f) { return; } this.m_LCInfo.m_LiquidType = liquid_source.m_LiquidType; } this.m_LCInfo.m_Amount = this.m_LCInfo.m_Capacity; this.OnGet(); }
public void Fill(LiquidSource liquid_source) { if (this.m_LCInfo.m_LiquidType != liquid_source.m_LiquidType) { if (this.m_LCInfo.m_Amount > 0f) { return; } this.m_LCInfo.m_LiquidType = liquid_source.m_LiquidType; } this.m_LCInfo.m_Amount = this.m_LCInfo.m_Capacity; this.ReplRequestOwnership(false); this.OnGet(); }
public bool Activate(LiquidSource source) { if (this.m_Active) { return(false); } this.ResetItems(); this.m_LiquidSource = source; this.ClearSlots(); this.AddSlot(HUDItem.Action.Drink); this.AddSlot(HUDItem.Action.CleanUp); if (!ScenarioManager.Get().IsDreamOrPreDream()) { this.AddSlot(HUDItem.Action.TakeClay); } this.Activate(); return(true); }
void OnTriggerStay(Collider other) { LiquidSource lq = other.GetComponentInChildren <LiquidSource>(); if (lq) { if (lq.liquidName == "Water") { SetPower(0, true); } } Fire f = other.GetComponentInChildren <Fire>(); if (f) { if (f.onFire && !onFire) { LightUp(); } } }
public void TakeLiquid(LiquidSource source) { this.m_Bowl.Fill(source); }