Example #1
0
        protected void StartGameObjectActiveContext()
        {
            _context = new GameObjectActiveContext(GameObjectGuid, gameObject.name, GameObjectHelper.GetGameObjectPath(transform));

            RDataSingleton.Client.StartContext(_context, _parentTracker != null ? _parentTracker.Context : null);
            if (RData.RDataLogging.DoLog)
            {
                Debug.Log("Start context for " + gameObject.name + " parent = " + (_parentTracker == null ? null : _parentTracker.gameObject.name));
            }
        }
Example #2
0
        protected void EndGameObjectActiveContext()
        {
            if (gameObject.activeSelf) // If the object is still active, parent was turned off. Don't send anything.
            {
                return;
            }

            RDataSingleton.Client.EndContext(_context);
            _context = null;
            if (RData.RDataLogging.DoLog)
            {
                Debug.Log("End context for " + gameObject.name);
            }
        }
 public UiClickEvent(string gameObjectGuid, float positionX, float positionY, bool isTouch, GameObjectActiveContext gameObjectContext)
     : base(new UiClickEventData() { GameObjectGuid = gameObjectGuid, PositionX = positionX, PositionY = positionY, IsTouch = isTouch }, gameObjectContext)
 {
 }