EndlessRunner.ResetCharacter C# (CSharp) 메소드

ResetCharacter() 공개 메소드

public ResetCharacter ( ) : void
리턴 void
    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);
    }