Beispiel #1
0
 public override void Show(Fishing.ArgList args)
 {
     base.Show(args);
     this._tfgInside = transform.FindChild("imginside").GetComponent <RectTransform>();
     this._tfOutSide = transform.FindChild("imgoutside").GetComponent <RectTransform>();
     this._tfMiddle  = transform.FindChild("imgmiddle").GetComponent <RectTransform>();
     this._tfJiantou = transform.FindChild("jiantou").GetComponent <RectTransform>();
     this._jiantou2  = transform.FindChild("jiantou2").GetComponent <RectTransform>();
     this._jiantou3  = transform.FindChild("jiantou3").GetComponent <RectTransform>();
     this._btnClick  = transform.FindChild("btnClick").GetComponent <Button>();
     //this._btnClick.onClick.AddListener(this.OnClick);
     this._startPos = args.GetAt <Vector3>(0);
     //this._endPos = args.GetAt<Vector3>(1);
     this._layer1   = args.GetAt <int>(1);
     this._layer2   = args.GetAt <int>(2);
     this._layer3   = args.GetAt <int>(3);
     this._callBack = args.GetAt <Action>(4);
     if (this._layer1 >= 60 && this._layer1 <= 90)
     {
         this._layer2 = this._layer1;
         this._layer1 = 0;
     }
     else if (this._layer1 >= 100 && this._layer1 <= 150)
     {
         this._layer3 = this._layer1;
         this._layer1 = 0;
     }
     this._btnClick.SetActive(false);
     this.Init();
 }
Beispiel #2
0
        public override void Show(Fishing.ArgList args)
        {
            base.Show(args);
            Text messageText = transform.FindChild("message").GetComponent <Text>();

            messageText.text = args.GetAt <string>(0);
            RectTransform rt = transform.GetComponent <RectTransform>();

            rt.localPosition = new Vector3(0, 250, 0);
            messageText.DOFade(0, 2).OnComplete(Close);
        }