Ejemplo n.º 1
0
    public void InitializeWindow()
    {
        dispTex = new Texture2D(1, 1);
        dispTex.SetPixel(0, 0, new Color(0.1f, 0.4f, 0.6f));
        dispTex.Apply();

        selectTex = new Texture2D(1, 1);
        selectTex.SetPixel(0, 0, new Color(0.8f, 0.8f, 0.8f));
        selectTex.Apply();

        enemyValues.ResetValues();
        currentEntryList = enemyLibrary.GetRepresentations("", "");
        filterStr        = "";
    }
Ejemplo n.º 2
0
 void SelectEnemy()
 {
     GUI.FocusControl(null);
     // Nothing selected
     if (selEnemy == -1)
     {
         enemyValues.ResetValues();
     }
     else
     {
         // Something selected
         EnemyEntry ee = (EnemyEntry)enemyLibrary.GetEntryByIndex(selEnemy);
         enemyValues.CopyValues(ee);
     }
 }