Пример #1
0
 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;
 }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }
Пример #4
0
 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();
 }
Пример #5
0
 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();
 }
Пример #6
0
 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);
 }
Пример #7
0
    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();
            }
        }
    }
Пример #8
0
 public void TakeLiquid(LiquidSource source)
 {
     this.m_Bowl.Fill(source);
 }