string name = collision.gameObject.name; · switch (name.Contains("")) · case "someString": · //Do stuff and things. · break; · default: · break;.
確定! 回上一頁