Exemplo n.º 1
0
        public void AddVase(AncientClayVase vase)
        {
            if (Vases == null)
            {
                Vases = new List <AncientClayVase>();
            }

            if (!Vases.Contains(vase))
            {
                Vases.Add(vase);
            }
        }
Exemplo n.º 2
0
        public void RemoveVase(AncientClayVase vase)
        {
            if (Vases != null)
            {
                if (Vases.Contains(vase))
                {
                    Vases.Remove(vase);
                }

                if (TreasuresOfDoomEvent.Instance.Running && Vases.Count < VaseCount)
                {
                    Timer.DelayCall(TimeSpan.FromMinutes(Utility.RandomMinMax(MinSpawn, MaxSpawn)), () =>
                    {
                        CreateVases(1);
                    });
                }
            }
        }
Exemplo n.º 3
0
        public void RemoveVase(AncientClayVase vase)
        {
            if (Vases != null)
            {
                if (Vases.Contains(vase))
                {
                    Vases.Remove(vase);
                }

                if (PointsSystem.TreasuresOfDoom.InSeason && Vases.Count < VaseCount)
                {
                    Timer.DelayCall(TimeSpan.FromMinutes(Utility.RandomMinMax(MinSpawn, MaxSpawn)), () =>
                    {
                        CreateVases(1);
                    });
                }
            }
        }