示例#1
0
    // Use this for initialization
    void Start()
    {
        count       = 0;
        text        = transform.Find("Text").GetComponent <Text>();
        character   = GameSceneManager.localHero;
        character_p = character.GetComponent <HeroProperty>();
        weapon_p    = transform.GetComponent <PropsProperty>();

        character_compoment = character.GetComponent <HeroProperty>();
        truecd = character_compoment.attackCd;
    }
示例#2
0
 private void Start()
 {
     ischangeteam = false;
     show         = GameObject.Find("Canvas/StorePanel/Weapons Panel/Introduce/b_a_s/Buy");
     show.SetActive(false);
     text           = show.GetComponentInChildren <Text>();
     picture        = GameObject.Find("Canvas/StorePanel/Weapons Panel/Introduce/Image").GetComponent <Image>();
     show_introduce = GameObject.Find("Canvas/StorePanel/Weapons Panel/Introduce/Text").GetComponent <Text>();
     show_property  = show.GetComponent <PropsProperty>();
     thisproperty   = transform.GetComponent <PropsProperty>();
 }
 set => SetValue(PropsProperty, value);