public static ChangeUpdateRange Instantiate(int range)
        {
            byte num1 = ((byte)range);
            ChangeUpdateRange range1 = ChangeUpdateRange.m_Cache[num1];

            if (range1 == null)
            {
                ChangeUpdateRange.m_Cache[num1] = (range1 = new ChangeUpdateRange(range));
            }
            return(range1);
        }
Beispiel #2
0
        public static ChangeUpdateRange Instantiate(int range)
        {
            var idx = (byte)range;
            var p   = m_Cache[idx];

            if (p == null)
            {
                m_Cache[idx] = p = new ChangeUpdateRange(range);
                p.SetStatic();
            }

            return(p);
        }
Beispiel #3
0
        public static ChangeUpdateRange Instantiate( int range )
        {
            byte idx = (byte)range;
            ChangeUpdateRange p = m_Cache[idx];

            if ( p == null )
                m_Cache[idx] = p = new ChangeUpdateRange( range );

            return p;
        }
 public static void SetUpdateRange(NetState state, CircularBufferReader reader)
 {
     state.Send(ChangeUpdateRange.Instantiate(18));
 }
Beispiel #5
0
		public static ChangeUpdateRange Instantiate(int range)
		{
			var idx = (byte)range;
			ChangeUpdateRange p = m_Cache[idx];

			if (p == null)
			{
				m_Cache[idx] = p = new ChangeUpdateRange(range);
				p.SetStatic();
			}

			return p;
		}