i’ve tried to find in the forums and script reference how i can state the if. but haven’t found any double conditions.
i belive they’re called operators… those i need.
you know these - AND, IS, OR,
i want to create a crossfade animation that works when i use a couple of keys the same time, like this:
//
if (Input.Getbutton (“left”) And (“right”))
//
or like, both input.GetAxis and Get.button in the same line.
like this?
//
if (Input.Getbutton(“left”) and Input.GetAxis(“Vertical”))
//
or did i miss something really simple to get a couple of keys to one action/animation?
the operators are all the same as the C# ones.
Means || etc
unless its a board game or alike I wouldn’t do the movement basing on IFs.
Would recommend to use the horizontal and vertical axis to scale the transform.forward and transform.right for your movement.
I think the island demo also contains such a setup for the movement code, otherwise you can learn it from the Network Example on the website
oh, thanks ill check that out. could you post a quick example here? i would be grateful to have a quick hint cause im not pro at C#
and its a 3rd person game, so its kinda good that i put that setting at the movement… else it multiples left + forward transform in speed
thanks 
for example
var a = true;
var b = true;
if( a b )
Debug.Log("Both a and b were true");