protected void OnDestroyEvent(object o, DestroyEventArgs args) { Application.Quit(); Tools.AllowedToRun = false; Environment.Exit(0); //args.RetVal = true; }
void OnProgressDisplayBarDestroyed(object o, DestroyEventArgs args) { ProgressDisplayBar pdb = (ProgressDisplayBar)o; pdb.DestroyEvent -= OnProgressDisplayBarDestroyed; this.Remove(pdb); }
public void DestroyShipCallFromServer(int ship_id) { if (nearestShips.ContainsKey(ship_id)) { DestroyEventArgs args = new DestroyEventArgs(); args.ship_id = ship_id; nearestShips[ship_id].GetComponent <ShipMotor>().thisShip.Destroyed(); } }
protected void OnDestroyEvent(object o, DestroyEventArgs a) { return; }
private void HandleDestroy(object sender, DestroyEventArgs e) { Spotify.DestroyPlayer(this); }
private void on_window_warning_destroy_event(object sender, DestroyEventArgs a) { }
private void on_window_constants_destroy_event(object sender, DestroyEventArgs a) { }
/* * Método destrucción de la ventana * */ protected void OnDestroyEvent(object o, DestroyEventArgs args) { Constants.BorrarRecursos(); Application.Quit(); args.RetVal = true; }
private static void ProjectWindow_DestroyEvent(object o, DestroyEventArgs args) { ApplicationHelper.UnlockFile(); args.RetVal = true; }
protected void onDestroyHandler(object Sender, DestroyEventArgs args) { Close(); }
protected void Lastclicktowin(object o, DestroyEventArgs args) { throw new NotImplementedException(); }
// Handlers :: OnDestroyEvent private void OnDestroyEvent(object o, DestroyEventArgs args) { Init(); }
//public void SetTarget(SpaceObject tg) //{ // thisShip.Command(ShipCommand.SetTarget,tg); //} //public void GoTotarget() //{ // thisShip.Command(ShipCommand.MoveTo); //} //// public void WarpTotarget() // { // thisShip.WarpToTarget (); // } // public void StartEquipment(int weaponnum) // { // thisShip.StartEquipment(); // } //public void AtackTarget(int weaponnum) //{ // thisShip.Atack_target(weaponnum); //} // public void LandTotarget() // { // } //public void OpenTarget() //{ // thisShip.OpenTarget (); //} #endregion #region Actions // private void Spawn()//backlink from Ship // { // // set zero // Debug.Log("set zeropoint"); // Debug.Log("zeropoint was " +spaceManager.GetComponent<ShowEnv>().GetZeroPoint()); // spaceManager.GetComponent<ShowEnv>().SetZeroPoint(thisShip.p.position); // Debug.Log("zeropoint now " +spaceManager.GetComponent<ShowEnv>().GetZeroPoint()); // Debug.Log ("move ship To 0,0,0"); // transform.position = transform.position * 0; // } // private void Warp() // { // if ( thisShip.moveCommand == Ship.MoveType.warp) // { // if (thisShip.Rotate()) // { // if (!thisShip.warpCoroutineStarted) // { // StartCoroutine(thisShip.Warpdrive()); // } // //else // //{ // // ship.p.position = Vector3.MoveTowards (ship.p.position,ship.p. Time.deltaTime * ship.p.warpSpeed; // //} // } // } // } // private void Atack() // { // for (int i = 0; i < thisShip.weapons.Count; i++) // { // if (thisShip.weapons[i].fire && !thisShip.weapons[i].activated) // { // thisShip.weapons[i].atack_co= StartCoroutine(thisShip.weapons[i].Attack()); // Debug.Log ("************* atack_co " + thisShip.weapons [i].atack_co.GetHashCode()); // } // } //// } //} //private void StopAtacking() //{ // for (int i = 0; i < thisShip.weapons.Count; i++) // { // if (thisShip.weapons[i].activated) // { // Debug.Log ("stopping atack couroutine id " + thisShip.weapons [i].atack_co.GetHashCode ()); // StopCoroutine (thisShip.weapons [i].atack_co); // } // } //} // private void Equipment() // { // for (int i = 0; i < thisShip.equipments.Count; i++) // { // if (thisShip.equipments[i].activate && !thisShip.equipments[i].coroutineStarted) // { // thisShip.equipments [i].use_co=StartCoroutine(thisShip.equipments[i].UseEq()); // } // } // } //private void StopEquipments() //{ // for (int i = 0; i < thisShip.equipments.Count; i++) // { // if (thisShip.equipments[i].coroutineStarted) // { // StopCoroutine (thisShip.equipments [i].use_co); // } // } //} #endregion private void ShipDestroyed(object sender, DestroyEventArgs e) { Explode(); spaceManager.GetComponent <Space>().DestroyShip(e.ship_id); }