Exemplo n.º 1
0
 void Start()
 {
     equipArea           = transform.parent.parent.parent.Find("EquipArea");
     menuArea            = transform.parent.parent.parent.Find("MenuArea");
     equipItemArea       = transform.parent.parent.parent.Find("EquipItemArea");
     informationText     = transform.parent.parent.parent.Find("Information/Text").GetComponent <Text>();
     selectedEquipButton = equipArea.GetComponent <SelectedEquipButton>();
 }
Exemplo n.º 2
0
 void Start()
 {
     equipArea           = transform.parent.parent;
     menuArea            = transform.parent.parent.parent.Find("MenuArea");
     equipItemArea       = transform.parent.parent.parent.Find("EquipItemArea");
     informationText     = transform.parent.parent.parent.Find("Information/Text").GetComponent <Text>();
     selectedEquipButton = GetComponentInParent <SelectedEquipButton>();
     canvasGroup         = equipArea.GetComponent <CanvasGroup>();
     returnButton        = menuArea.Find("Exit").gameObject;
 }
    // Use this for initialization
    void Start()
    {
        equipArea       = transform.parent.parent.parent.Find("EquipArea");
        menuArea        = transform.parent.parent.parent.Find("MenuArea");
        equipItemArea   = transform.parent.parent.parent.Find("EquipItemArea");
        informationText = transform.parent.parent.parent.Find("Information/Text").
                          GetComponent <Text>();
        selectedEquipButton = equipArea.GetComponent <SelectedEquipButton>();

        game3d7Pre  = GameObject.FindGameObjectWithTag("Player");
        changeEquip = game3d7Pre.GetComponentInChildren <ChangeEquip>();
        imageComp   = GetComponent <Image>();
        statusWindowItemDataBase = Camera.main.GetComponent <StatusWindowItemDataBase>();
    }