ranakki_99

Logic in Unity Pro XL

2 posts in this topic

I have one value which i need ti give as an input. But after every 10-20 secs value changes from "+ve to -ve"

so what I need to do is If the value is "+ve" It should pass as it is and if it is "-ve" value should change into Positive .

what logis chould i do as the values is from Array.

Share this post


Link to post
Share on other sites

Just to make it clear do you want the value to always show as a positive? If so you can use the abs function block

abs.JPG

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now