GameEntity(九)—— InviteOtherPlayer

来源:互联网 发布:python buffer对象 编辑:程序博客网 时间:2024/05/18 00:50

目录为:Assets/Scripts/GameEntity/目录下
InviteOtherPlayer.cs

邀请好友类

using UnityEngine;using System.Collections;using System;using System.Collections.Generic;//邀请好友public class InviteOtherPlayer{    //static    private static InviteOtherPlayer instance = null;    public static InviteOtherPlayer Instance    {        get        {            if (instance == null)            {                instance = new InviteOtherPlayer ();            }            return instance;        }    }    public UInt64 RoomID    {        private set;        get;    }    public string PassWord    {        private set;        get;    }    public string NiceName    {        private set;        get;    }    public int Length    {        private set;        get;    }    public void SetInvitation(UInt64 roomID, string passWord, int length, string niceName)    {        Length = length;        RoomID = roomID;        PassWord = passWord;        NiceName = niceName;    }}