示例#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);
        }
示例#2
0
 public Circle(CircleData data)
 {
     _data = data;
     Color = _data.Color;
 }
示例#3
0
 private Circle CreateCircle(CircleData data)
 {
     return(new Circle(data));
 }