public void RelayData(GameInfoContainer Container) { var pipe = PipeServer.Pipe; if (pipe.IsConnected && pipe.CanWrite) { PipeServer.Write(Container); } }
void Start() { _pads = FindObjectsOfType <PadBehaviour>(); _ball = FindObjectOfType <BallBehaviour>(); _ball.Initiate(); _textsScore = FindObjectsOfType <Text>(); GameContainer = new GameInfoContainer(); SoundHelper.Load(); SoundHelper.Play(SoundHelper.Audios.Beep); }