コード例 #1
0
    void teleportToPlayer(string input)
    {
        OtherPlayer otherPlayer = this.otherPlayerList.Find(x => x.getName().Equals(input));

        if (otherPlayer != null)
        {
            this.ownPlayer.transform.position = otherPlayer.getPosition();
        }
    }