Example #1
0
    private void LoadLevel()
    {
        foreach (LevelPiece piece in StoreLevel.levelPieces)
        {
            ServerSend.SpawnLevelPiece(id, piece);
        }

        foreach (Ball ball in Ball.balls.Values)
        {
            ServerSend.BallSpawn(id, ball);
        }
    }
Example #2
0
 private void Awake()
 {
     id = nextId++;
     balls.Add(id, this);
     ServerSend.BallSpawn(this);
 }