コード例 #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);
        }
    }
コード例 #2
0
 private void EndTouch()
 {
     m_ship.StopTurnTo();
     ToggleTouchVisual(false);
     started = false;
 }
コード例 #3
0
 private void EndTouch()
 {
     m_ship.StopTurnTo();
     started = false;
 }