public bool GoBackPort(int escapeRid, int towRid)
        {
            Mem_ship mem_ship  = null;
            Mem_ship mem_ship2 = null;

            if (!Comm_UserDatas.Instance.User_ship.TryGetValue(escapeRid, ref mem_ship))
            {
                return(false);
            }
            if (!Comm_UserDatas.Instance.User_ship.TryGetValue(towRid, ref mem_ship2))
            {
                return(false);
            }
            if (mem_ship.Escape_sts)
            {
                return(false);
            }
            if (mem_ship2.Escape_sts)
            {
                return(false);
            }
            mem_ship.ChangeEscapeState();
            mem_ship2.ChangeEscapeState();
            return(true);
        }
예제 #2
0
        public bool GoBackPort(int escapeRid, int towRid)
        {
            Mem_ship value  = null;
            Mem_ship value2 = null;

            if (!Comm_UserDatas.Instance.User_ship.TryGetValue(escapeRid, out value))
            {
                return(false);
            }
            if (!Comm_UserDatas.Instance.User_ship.TryGetValue(towRid, out value2))
            {
                return(false);
            }
            if (value.Escape_sts)
            {
                return(false);
            }
            if (value2.Escape_sts)
            {
                return(false);
            }
            value.ChangeEscapeState();
            value2.ChangeEscapeState();
            return(true);
        }