private static ActorInstanceLayer GetActorInstanceLayer() { var playerActor = new PlayerActor(); ActorInstance playerActorInstance = playerActor.CreateActorInstance( BoardId, new Coordinate(4, 4), new EventHandlerCollection(new PlayerTouchedPlayerActorInstanceEventHandler())); var soundEffectActor = new SoundEffectsActor(); ActorInstance soundEffectsActorInstance = soundEffectActor.CreateActorInstance( BoardId, new Coordinate(7, 4), new EventHandlerCollection(new PlayerTouchedSoundEffectActorInstanceEventHandler())); var songActor = new SongsActor(); ActorInstance songActorsInstance = songActor.CreateActorInstance( BoardId, new Coordinate(10, 4), new EventHandlerCollection(new PlayerTouchedSongActorInstanceEventHandler())); var timerActor = new TimerActor(); ActorInstance timerActorInstance = timerActor.CreateActorInstance( TimerActorInstanceId, BoardId, new Coordinate(13, 4), new EventHandlerCollection(new PlayerTouchedTimerActorInstanceEventHandler())); return(new ActorInstanceLayer(BoardId, BoardSize, playerActorInstance, soundEffectsActorInstance, songActorsInstance, timerActorInstance)); }