private static int FFI_Using(ILuaState lua) { var name = lua.ToString(1); UsingList.Add(name); return(0); }
public T Alloc <T>() where T : Component { GameObject asset = null; if (FreeList.Count > 0) { asset = FreeList.Pop(); } if (asset == null) { asset = GameObject.Instantiate <GameObject>(Prefab); } UsingList.Add(asset); asset.gameObject.SetActive(true); if (AssetManager.OnChanged != null) { AssetManager.OnChanged(); } return(asset.GetComponent <T>()); }
/// <summary> /// Adds a using directive to write separately. /// </summary> public void AddUsing(string usingDirective) { UsingList.Add(usingDirective); }
public void Add(Using @using) { UsingList.Add(@using); }