Ejemplo n.º 1
0
    public void UpdateGUI()
    {
        enemy         = enemyObject.GetComponent <Enemy> ();
        image.texture = Iconography.GenerateIcon(enemyObject);
        IDescribed described = enemyObject.GetComponent <IDescribed>();

        text.text = described.Name + "\nX " + count;
    }
Ejemplo n.º 2
0
        public static Expression WrapFunc <T>(string message, Type returnType, Expression expression,
                                              IDescribed described)
            where T : StructureMapException
        {
            var description = Expression.Call(Expression.Constant(described), DescriptionMethod);

            return(wrap <T>(message, returnType, expression, description));
        }