Exemplo n.º 1
0
    private void createANewCloud(int starting)
    {
        GameObject   c        = Instantiate(pointCloudPrefab, transform);
        MyPointCloud newCloud = c.GetComponent <MyPointCloud>();

        newCloud.pointsSize = pointsSize;
        clouds.Add(newCloud);
        newCloud.startingIndex     = starting;
        newCloud.serverRefreshRate = lerpTime;
    }
Exemplo n.º 2
0
 public void updatePoints(UpdateOrder o)
 {
     for (int i = 0; i < o.targetsIDs.Count; ++i)
     {
         MyPointCloud c = getCloudFor(o.targetsIDs[i]);
         if (c != null)
         {
             c.UpdatePointTarget(o.targetsIDs[i], o.newTargets[i], o.colors[i]);
         }
     }
 }