手把設置

// Multi player
public string player = "P1";
if (Input.GetButton("Horizontal_"+player)) {...}
if (Input.GetButton("Vertical_"+player)) {...}
if (Input.GetButton("Jump_"+player)) {...}
if (Input.GetButton("Fire1_"+player)) {...}

Ref:

results matching ""

    No results matching ""