Ejemplo n.º 1
0
 public void RegisterListeners(IEntity entity)
 {
     if (hasRegistered)
     {
         return;
     }
     _entity = (GameEntity)entity;
     _entity.AddActiveListener(this);
     _entity.ReplaceActive(gameObject.activeSelf);
     hasRegistered = true;
 }
Ejemplo n.º 2
0
    public void RegisterListeners(IEntity entity)
    {
        if (hasRegistered)
        {
            return;
        }

        _context = Contexts.sharedInstance.game;
        _entity  = (GameEntity)entity;
        _entity.AddMatchReplayListItemListener(this);
        _entity.AddActiveListener(this);
        hasRegistered = true;
    }
Ejemplo n.º 3
0
    public void RegisterListeners(IEntity entity)
    {
        if (hasRegistered)
        {
            return;
        }

        _context = Contexts.sharedInstance.game;
        _entity  = (GameEntity)entity;
        _entity.AddNinjaItemNameListener(this);
        _entity.AddActiveListener(this);
        _entity.AddLeftNumberListener(this);
        hasRegistered = true;
    }