Ejemplo n.º 1
0
 public void Enable( UIReq obj )
 {
     if ( obj == null ) {
         RendererAll( false );
     } else {
         target = obj;
         RendererAll( true );
     }
 }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        target = null;

        Name = transform.Find("FactoryName").gameObject.GetComponent<Text>();
        TimeToNext = transform.Find("TimeUntilNext").gameObject.GetComponent<Text>();
        Description = transform.Find("Description").gameObject.GetComponent<Text>();
        Flavor = transform.Find("FlavorText").gameObject.GetComponent<Text>();

        FlavorPanel = transform.Find("FlavorPanel").gameObject;
        DescPanel = transform.Find("DescPanel").gameObject;
        NamePanel = transform.Find("NamePanel").gameObject;
        TimePanel = transform.Find("TimePanel").gameObject;

        RendererAll( false );
    }