Esempio n. 1
0
	public override void FindItem() {
		base.FindItem();
		_emoji = gameObject.GetComponent<UIEmoji>();
		_channelPanle = transform.Find("chanel");
		_labelChannel = transform.Find("chanel/Label").GetComponent<UILabel>();
		_preChannelPos = _channelPanle.localPosition;
	}
Esempio n. 2
0
 public override void FindItem()
 {
     base.FindItem();
     _emoji         = gameObject.GetComponent <UIEmoji>();
     _channelPanle  = transform.Find("chanel");
     _labelChannel  = transform.Find("chanel/Label").GetComponent <UILabel>();
     _preChannelPos = _channelPanle.localPosition;
 }
Esempio n. 3
0
	public override void FindItem() {
		base.FindItem();
		_emoji = transform.Find("Label").GetComponent<UIEmoji>();
		_widgetItemContent = transform.GetComponent<UIWidget>();
		_widgetBunble = transform.Find("Label/kuang").GetComponent<UISprite>();
		_widgetText = transform.Find("Label").GetComponent<UIWidget>();
		_labelName = transform.Find("icon/name").GetComponent<UILabel>();
		_headIcon = transform.Find("icon").GetComponent<UISprite>();
		_preNamePostion = _labelName.transform.localPosition;
		_preTextPostion = _widgetText.transform.localPosition;
		_preHeadPostion = _headIcon.transform.localPosition;

		_selfHeadPostion = _preHeadPostion + new Vector3(_widgetItemContent.width - _headIcon.width, 0, 0);
		_selfTextPostion = _preTextPostion + new Vector3(-_headIcon.width, 0, 0);
	}
Esempio n. 4
0
    public override void FindItem()
    {
        base.FindItem();
        _emoji             = transform.Find("Label").GetComponent <UIEmoji>();
        _widgetItemContent = transform.GetComponent <UIWidget>();
        _widgetBunble      = transform.Find("Label/kuang").GetComponent <UISprite>();
        _widgetText        = transform.Find("Label").GetComponent <UIWidget>();
        _labelName         = transform.Find("icon/name").GetComponent <UILabel>();
        _headIcon          = transform.Find("icon").GetComponent <UISprite>();
        _preNamePostion    = _labelName.transform.localPosition;
        _preTextPostion    = _widgetText.transform.localPosition;
        _preHeadPostion    = _headIcon.transform.localPosition;

        _selfHeadPostion = _preHeadPostion + new Vector3(_widgetItemContent.width - _headIcon.width, 0, 0);
        _selfTextPostion = _preTextPostion + new Vector3(-_headIcon.width, 0, 0);
    }