コード例 #1
0
 public void AddProgressToTrack(CultTrackEntity entity, int newTrackPosition)
 {
     //Get the right track
     entity.CurrentBin.Remove(entity);
     entityBins[newTrackPosition].Add(entity);
     entity.CurrentBin.RefactorPeices();
 }
コード例 #2
0
 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();
 }