public void AddProgressToTrack(CultTrackEntity entity, int newTrackPosition) { //Get the right track entity.CurrentBin.Remove(entity); entityBins[newTrackPosition].Add(entity); entity.CurrentBin.RefactorPeices(); }
public void AddPlayerPiece(CultTrackEntity entity) { playerEntities[entity.LinkedPlayer.GetComponent <PlayerNetworked>().PlayerID] = entity; entity.CurrentBin = entityBins[0]; //Link entity to it's bin and vice versa entity.CurrentBin.Add(entity); entity.TrackID = trackID; entity.CurrentBin.RefactorPeices(); }