public void Restart() { player.transform.position = playerStartPoint.position; luggage.transform.position = luggageStartPoint.position; player.Reset(); luggage.Reset(); }
private void ThrowLuggage() { m_luggage.onPick = false; m_luggage.transform.SetParent(null); m_luggage.transform.rotation = Quaternion.identity; onPickupLuggage = false; if (m_vel.x != 0 && input.y == -1) { m_luggage.Reset(); // Put on ground } else { m_luggage.OnThrow(input.x); } }