Beispiel #1
0
    private void OnTriggerEnter2D(Collider2D other)
    {
        ABR_Ship ship = other.GetComponent <ABR_Ship>();

        if (ship != null)
        {
            runaways.Remove(ship);

            NotificationReciever notificationReciever = ship.GetComponent <NotificationReciever>();
            if (notificationReciever != null)
            {
                notificationReciever.Notify("Lost Control", false);
            }

            ship.StopThrust(true);
            ship.StopTurnTo(true);
        }
    }
Beispiel #2
0
 private void EndTouch()
 {
     m_ship.StopTurnTo();
     ToggleTouchVisual(false);
     started = false;
 }
Beispiel #3
0
 private void EndTouch()
 {
     m_ship.StopTurnTo();
     started = false;
 }