EndlessRunner.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
    void Update()
    {
        if(mainCharacter.transform.position.y < -2)
        {
            ResetCharacter();
        }
    }