Пример #1
0
    void ResetCharacter()
    {
        Debug.Log("YOU RAN " + mainCharacter.transform.position.x + " Meters");

        mainCharacter.transform.position = startPosition;
        mainCharacter.GetComponent <Rigidbody2D>().velocity = new Vector2(Dude.START_VELOCITY, 0);
    }