| | |
| | | void Awake() |
| | | { |
| | | tmpBtn = transform.GetComponent<Button>(); |
| | | flyImage = transform.GetComponent<FlyImage>(); |
| | | //flyImage = transform.GetComponent<FlyImage>(); |
| | | tmpBtn.onClick.AddListener(OnClick); |
| | | } |
| | | |
| | |
| | | } |
| | | bool countdown; |
| | | float timer; |
| | | |
| | | |
| | | public void Init() |
| | | { |
| | | timer = 0; |
| | |
| | | { |
| | | tmpBtn.interactable = false; |
| | | RectTransform end = GameObject.Find("UICamera/MainUI/FlyEndPos").GetComponent<RectTransform>(); |
| | | flyImage.SetDestination(null, transform.position, end.position, true); |
| | | |
| | | //金币飞动 增加多少个金币,制造多少个 |
| | | TowerDefense.Level.EndlessDropManager.instance.FlyIcon( |
| | | transform.parent, |
| | | null, |
| | | transform.position, |
| | | end.position, |
| | | true, |
| | | TowerDefense.Level.EndlessLevelManager.instance.DropCoin); |
| | | Core.Utilities.Poolable.TryPool(gameObject); |
| | | //flyImage.SetDestination(null, transform.position, end.position, true); |
| | | } |
| | | } |