Пример #1
0
    private bool subCheckSelectionButton(G_TypeChoiceButton b, Effectivness compare)
    {
        // Pull it's effectivness
        Effectivness e = TypeLibrary.instance.Library[b.tid].CheckMatch(currentEnemyTID);

        // Update the button text to reflect it
        b.SetText(GlobalConfiguration.EffectivnessName(e));

        if ((int)e <= (int)compare){
            return true;
        }
        else{
            return false;
        }
    }
Пример #2
0
 void Start()
 {
     // The GM will set these links on awake so we're safe to probe here
     tcb1 = G_GameManager.instance.typeSelectionObject1.GetComponent<G_TypeChoiceButton>();
     tcb2 = G_GameManager.instance.typeSelectionObject2.GetComponent<G_TypeChoiceButton>();
     tcb3 = G_GameManager.instance.typeSelectionObject3.GetComponent<G_TypeChoiceButton>();
     tcb4 = G_GameManager.instance.typeSelectionObject4.GetComponent<G_TypeChoiceButton>();
 }