In my 2D vertical platformgame i want to give my player a temporary jump boost.
im thinking something like.
if(hit.gameObject.tag == "Boost")
{
**var jumpheight =*2.0;**
yield.WaitForSeconds(5.0) destroy()
But im not sure how to put this in code.
↧