示例#1
0
 public override void Update(float deltaTime)
 {
     if (mDamagable.god)
     {
         log.InfoFormat("turret at world = {0} was GOD, we change it to NOT GOD ID = {1} [red]", nebulaObject.mmoWorld().Zone.Id, nebulaObject.Id);
         mDamagable.SetGod(false);
     }
 }
示例#2
0
        private void CheckGodState()
        {
            var world = nebulaObject.world as MmoWorld;

            if (world.FindObjectsOfType <Outpost>().Count > 0)
            {
                if (!mDamagable.god)
                {
                    //log.Info("Set MainOutpost GOD to true");
                    mDamagable.SetGod(true);
                }
            }
            else
            {
                if (mDamagable.god)
                {
                    //log.Info("Set MainOutpost GOD to false");
                    mDamagable.SetGod(false);
                }
            }
        }
示例#3
0
        public override void Update(float deltaTime)
        {
            if (mConstructionTimer > 0)
            {
                mConstructionTimer -= deltaTime;
                if (mConstructionTimer <= 0f)
                {
                    mDamagable.ForceSetHealth(mDamagable.maximumHealth);
                    SetUnderConstruction(false);
                }
                nebulaObject.properties.SetProperty((byte)PS.ConstructionTimer, constructProgress);
            }

            if (mDamagable.god)
            {
                log.InfoFormat("outpost at world = {0} was GOD, we change it to NOT GOD [red]", nebulaObject.mmoWorld().Zone.Id);
                mDamagable.SetGod(false);
            }
        }