Beispiel #1
0
    void Awake()
    {
        mInstance = this;
        tween = this.GetComponent<UITweenPos>();
        numberDialog = this.transform.Find("NumberDialog").gameObject;
        numberInput = transform.Find("NumberDialog/NumberInput").GetComponent<InputField>();

        numberDialog.SetActive(false);
    }
Beispiel #2
0
    void Awake()
    {
        mInstance = this;
        tween = this.GetComponent<UITweenPos>();

        attackLabel = transform.Find("attack").GetComponent<Text>();
        defLabel = transform.Find("def").GetComponent<Text>();
        speedLabel = transform.Find("speed").GetComponent<Text>();
        pointRemainLabel = transform.Find("pointRemain").GetComponent<Text>();
        summaryLabel = transform.Find("summry").GetComponent<Text>();

        attackButtonGo = transform.Find("attack_plusbutton").gameObject;
        defButtonGo = transform.Find("def_plusbutton").gameObject;
        speedButtonGo = transform.Find("speed_plusbutton").gameObject;

        m_playerStatus = GameObject.FindGameObjectWithTag(Tags.player).GetComponent<PlayerStatus>();
    }
Beispiel #3
0
    void Awake()
    {
        mInstance = this;
        tween=this.GetComponent<UITweenPos>();

        headgear = transform.Find("HeadGear").gameObject;
        armor = transform.Find("Armor").gameObject;
        rightHand = transform.Find("RightHand").gameObject;
        leftHand = transform.Find("LeftHand").gameObject;
        shoe = transform.Find("Shoe").gameObject;
        accessory = transform.Find("Accessory").gameObject;

        ps = GameObject.FindGameObjectWithTag(Tags.player).GetComponent<PlayerStatus>();
    }
Beispiel #4
0
 void Awake()
 {
     mInstance = this;
     uitweenPos = this.gameObject.GetComponent<UITweenPos>();
 }