GetP2PosX() public method

public GetP2PosX ( ) : float
return float
示例#1
0
 private VirtualKeyCode ResolvePlayerBackwardInput(int player)
 {
     if (player == 1)
     {
         return((_sf4m.GetP1PosX() < _sf4m.GetP2PosX()) ? Get(Input.Left, player) : Get(Input.Right, player));
     }
     else
     {
         return((_sf4m.GetP1PosX() > _sf4m.GetP2PosX()) ? Get(Input.Left, player) : Get(Input.Right, player));
     }
 }
 public bool IsPlayerOnLeft()
 {
     return(sf4m.GetP1PosX() < sf4m.GetP2PosX());
 }