Ejemplo n.º 1
0
    static public WebBridge get()
    {
        WebBridge wb = qh.gc <WebBridge>();

        if (wb == null)
        {
            GameObject obj = HalperGameObject.getGameObject("[web]");
            wb = obj.AddComponent <WebBridge>();
        }
        return(wb);
    }
Ejemplo n.º 2
0
    private void Start()
    {
        _spawnerRef   = ServiceLocator.Instance.Spawner;
        _webBridgeRef = ServiceLocator.Instance.WebBridge;
        _dataChains   = new StringBuilder[4];
        for (int i = 0; i < 4; i++)
        {
            _dataChains[i] = new StringBuilder();

            _dataChains[i].Append("");
        }
        this.OnUnityUpdate += SimulationMaster_OnUnityUpdate;
    }