예제 #1
0
        public void RelayData(GameInfoContainer Container)
        {
            var pipe = PipeServer.Pipe;

            if (pipe.IsConnected && pipe.CanWrite)
            {
                PipeServer.Write(Container);
            }
        }
예제 #2
0
    void Start()
    {
        _pads = FindObjectsOfType <PadBehaviour>();

        _ball = FindObjectOfType <BallBehaviour>();
        _ball.Initiate();

        _textsScore = FindObjectsOfType <Text>();

        GameContainer = new GameInfoContainer();

        SoundHelper.Load();
        SoundHelper.Play(SoundHelper.Audios.Beep);
    }