Exemplo n.º 1
0
 void Start()
 {
     migratePanel = FindObjectOfType<MigrationPanel>();
     player = FindObjectOfType<Player>();
     critter = player.GetCritter();
     button = GetComponent<Button>();
     text = GetComponentInChildren<Text>();
     buttonImage = GetComponent<Image>();
     defaultButtonColor = buttonImage.color;
 }
Exemplo n.º 2
0
    void Start()
    {
        uiControl = FindObjectOfType<UIController>();
        migratePanel = uiControl.migratePanel;
        anim = GetComponent<Animator>();
        toggle = GetComponentInParent<ToggleButton>();
        startPos = gameObject.transform.localPosition;

        currentState = state.INACTIVE;
    }
Exemplo n.º 3
0
 void Start()
 {
     migratePanel = FindObjectOfType<MigrationPanel>();
     button = GetComponent<Button>();
 }