示例#1
0
        public void OnCollectTroop()
        {
            TimeSpan t = GarrisonStatus.CurrentTime() - this.m_shipmentCreationTime;

            if ((this.m_shipmentDuration - t).TotalSeconds > 0.0)
            {
                return;
            }
            if (this.m_shipmentDBID != 0UL && !this.m_collected)
            {
                this.m_collected = true;
                this.m_collectingSpinner.SetActive(true);
                UiAnimMgr.instance.PlayAnim("MinimapPulseAnim", base.transform, Vector3.zero, 2f, 0f);
                Main.instance.m_UISound.Play_CollectTroop();
                LegionCompanionWrapper.CompleteShipment(this.m_shipmentDBID);
            }
        }