Standingstonegames
started a topic on Wed, 29 July 2015 at 6:12 PM
This might seem like a rather stupid question but I thought it'd be worth asking. When I'm adding in my playfab functions and code from the docs (this is in Unity by the way), do I just treat it as if it were any other piece of code, and just put that in there. So lets say I wanted to give a player a coin everytime he pressed X, would this suffice
if (Input.GetKeyDown("X")){
Playfab.addcoin (not literally the code but you know what I mean)
}
Or do I have to code it in playfab specific way?
Cheers
Tom