コード例 #1
0
    void Start()
    {
        // For now just hit this variable to create the singleton
        WebSocketService.Instance.init();

        player             = GetComponent <Rigidbody>();
        _ballActionHandler = new BallActionHandler(playerCamera, ball, baseBallThrust);
    }
    void Start()
    {
        // For now just hit this variable to create the singleton
        WebSocketService.Instance.init();

        player             = GetComponent <Rigidbody>();
        _ballActionHandler = new BallActionHandler(playerCamera, ball, baseBallThrust);

        // Give the websocket a reference to the object so it can know where its position is
        WebSocketService.Instance.SetLocalPlayerRef(player);
    }