public override void InitData() { if (MallocManager.instance != null && MallocManager.instance.GetMallocs().Count > 0) { mal = ((Malloc)MallocManager.instance.GetMallocs()[0]); mal.Dying(); MallocManager.instance.RemoveMalloc(mal); start = transform.position; percent = 0f; } else Die(); }
internal void RemoveMalloc(Malloc malloc) { list.Remove(malloc); }
internal void AddMalloc(Malloc malloc) { list.Add(malloc); }