Beispiel #1
0
        public float DoSubmerge(float time, float timeUnit)
        {
            float amount = sinkComponent.DoSubmerge(time, timeUnit);

            MoveSoldiersY(-amount);


            return(amount);
        }
Beispiel #2
0
        public float Submerge(float time, float timeUnit)
        {
            float amount = sinkComponent.DoSubmerge(time, timeUnit);


            attractorForce.X = 0;
            attractorForce.Y = -amount;

            if (amount > 0)
            {
                // toniêcie siê nie zakoñczy³o
                //  refToLevel.Controller.OnShipSubmerging(this);
                return(amount);
            }
            if (this is BeginShipTile)
            {
                this.attractorForce = new PointD(0, 0);
                //  refToLevel.Controller.OnShipSubmerged(this as BeginShipTile);
            }

            return(0);
        }