Exemple #1
0
        public List <CircleData[]> GetCirclesData()
        {
            List <CircleData[]> data = new List <CircleData[]>();
            var waitingData          = _circleSpawner.GetWaitingForSpawnData().ToArray();

            CircleData[] spawned = new CircleData[_activeCircles.Count];
            for (int i = 0; i < _activeCircles.Count; i++)
            {
                spawned[i] = _activeCircles[i].UpdateAndGetData();
            }
            data.Add(waitingData);
            data.Add(spawned);
            return(data);
        }
Exemple #2
0
 public Circle(CircleData data)
 {
     _data = data;
     Color = _data.Color;
 }
 private Circle CreateCircle(CircleData data)
 {
     return(new Circle(data));
 }