Пример #1
0
 void Start()
 {
     if (_pusherManager == null)
     {
         _pusherManager = GetComponent <PusherManager>();
     }
 }
    async Task Start()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }
        DontDestroyOnLoad(gameObject);
        await InitializePusher();

        Console.WriteLine("Starting");

        var service = new RestService();

        _api = new ChatApiAsync(service);

        HttpResponseMessage response = await _api.Healthcheck();

        Debug.Log($"API server connected: { response.IsSuccessStatusCode }");

        await GetOldMessages();
    }
 void Start()
 {
     anim = GetComponent <Animator>();
     if (_pusherManager == null)
     {
         _pusherManager = GetComponent <PusherManager>();
     }
     transform.localScale = new Vector3(-1, 1, 1);
     audioData            = GetComponent <AudioSource>();
 }
Пример #4
0
    private const string PUSHER_CHANNEL_NAME = "private-firework";  // "my-channel"

    async Task Start()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }
        DontDestroyOnLoad(gameObject);
        await InitialisePusher();
    }
Пример #5
0
 async Task Start()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
     DontDestroyOnLoad(gameObject);
     Console.WriteLine("Starting");
 }
Пример #6
0
 public PushItemChangedStep(
     IEnumerable <IEntityIndexer> entityIndexers,
     IEnumerable <IAttributeIndexer> attributeIndexers,
     IEnumerable <IEntityPusher> entityPushers,
     IEnumerable <IAttributePusher> attributePushers,
     ResolverFactory resolver,
     EntityRepository entityRepository,
     AttributeRepository attributeRepository,
     MessageRepository messageRepository,
     QueueItemRepository queueItemRepository,
     ConnectionRepository connectionRepository,
     PusherManager pusherManager) : base(resolver)
 {
     this.entityIndexers       = entityIndexers;
     this.attributeIndexers    = attributeIndexers;
     this.entityPushers        = entityPushers;
     this.attributePushers     = attributePushers;
     this.entityRepository     = entityRepository;
     this.attributeRepository  = attributeRepository;
     this.messageRepository    = messageRepository;
     this.queueItemRepository  = queueItemRepository;
     this.connectionRepository = connectionRepository;
     this.pusherManager        = pusherManager;
 }