LuaInterface.LuaObjectPool.TryGetValue C# (CSharp) 메소드

TryGetValue() 공개 메소드

public TryGetValue ( int index ) : object
index int
리턴 object
        public object TryGetValue(int index)
        {
            if (index > 0 && index < count)
            {
                return list[index].obj;
            }

            return null;
        }

Usage Example

예제 #1
0
 public object GetObject(int udata)
 {
     return(objects.TryGetValue(udata));
 }
All Usage Examples Of LuaInterface.LuaObjectPool::TryGetValue