Exemplo n.º 1
0
    public virtual void Link(IEntity entity)
    {
        gameObject.Link(entity);
        PlayerEntity e = (PlayerEntity)entity;

        e.AddPositionListener(this);
        e.AddDestroyedListener(this);

        var pos = e.position.value;

        transform.localPosition = new Vector3(pos.x, pos.y);
    }