コード例 #1
0
 private void OnSelectChange(PetInfo rInfo, Transform t)
 {
     if (t)
     {
         var tween = selecet_img.GetComponentDefault <TweenPosition>();
         tween.duration = 0.15f;
         tween.from     = selecet_img.transform.localPosition;
         tween.to       = t.parent.localPosition;
         tween.Play();
     }
     if (null == rInfo || rInfo.Equals(SelectPet))
     {
         return;
     }
     SelectPet = rInfo;
     //更新界面
     Refresh();
     RefreshHintCompose(rInfo);
 }