예제 #1
0
파일: WarShip.cs 프로젝트: ingex0/smarttank
 void phisicalUpdater_OnCollied(IGameObj Sender, CollisionResult result, GameObjInfo objB)
 {
     if (OnCollied != null)
     {
         InfoRePath.CallEvent(this.mgPath, "OnCollied", OnCollied, this, result, objB);
     }
 }
예제 #2
0
파일: WarShip.cs 프로젝트: ingex0/smarttank
 void phisicalUpdater_OnOverlap(IGameObj Sender, CollisionResult result, GameObjInfo objB)
 {
     if (OnOverLap != null)
     {
         InfoRePath.CallEvent(this.mgPath, "OnOverlap", OnOverLap, this, result, objB);
     }
 }
예제 #3
0
 void phiUpdater_OnOverlap(IGameObj Sender, CollisionResult result, GameObjInfo objB)
 {
     if (onOverlap != null)
     {
         //onOverlap( this, result, objB );
         InfoRePath.CallEvent(this.MgPath, "onOverlap", onOverlap, this, result, objB);
     }
 }
예제 #4
0
 void phiUpdater_OnCollied(IGameObj Sender, CollisionResult result, GameObjInfo objB)
 {
     if (onCollided != null)
     {
         //onCollided( this, result, objB );
         InfoRePath.CallEvent(this.MgPath, "onCollided", onCollided, this, result, objB);
     }
 }
예제 #5
0
        void controller_onShoot(object sender, EventArgs e)
        {
            if (onShoot != null)
            {
                InfoRePath.CallEvent(this.MgPath, "onShoot", onShoot, this, skin.GetTurretEndPos(controller.Pos, controller.Azi, controller.turretAzi), controller.Azi + controller.turretAzi);
            }

            skin.BeginRecoil();
        }
예제 #6
0
파일: WarShip.cs 프로젝트: ingex0/smarttank
 protected bool Shoot(float ShootAzi)
 {
     if (shootTimer >= 0)
     {
         if (OnShoot != null)
         {
             InfoRePath.CallEvent(this.mgPath, "OnShoot", OnShoot, this, Pos + MathTools.NormalVectorFromAzi(ShootAzi) * SpaceWarConfig.ShootEndDest, ShootAzi);
         }
         shootTimer -= SpaceWarConfig.ShootCD;
         return(true);
     }
     return(false);
 }
예제 #7
0
        void controller_OnCollied(IGameObj Sender, CollisionResult result, GameObjInfo objB)
        {
            if (onCollide != null)
            {
                //onCollide(this, result, objB);
                InfoRePath.CallEvent(this.MgPath, "onCollide", onCollide, this, result, objB);
            }

            if (OnCollide != null)
            {
                //OnCollide(result, objB);
                InfoRePath.CallEvent(this.MgPath, "OnCollide", OnCollide, result, objB);
            }
        }
예제 #8
0
        void controller_OnOverlap(IGameObj Sender, CollisionResult result, GameObjInfo objB)
        {
            if (onOverLap != null)
            {
                //onOverLap(this, result, objB);
                InfoRePath.CallEvent(this.MgPath, "onOverLap", onOverLap, this, result, objB);
            }

            if (OnOverLap != null)
            {
                //OnOverLap(result, objB);
                InfoRePath.CallEvent(this.MgPath, "OnOverLap", OnOverLap, result, objB);
            }
        }