wangguan
2020-12-29 452c75675679c44cc39b04bdb7d330d7c5c14d5c
Assets/Scripts/TowerDefense/UI/DropCoinImage.cs
@@ -11,7 +11,7 @@
    void Awake()
    {
        tmpBtn = transform.GetComponent<Button>();
        flyImage = transform.GetComponent<FlyImage>();
        //flyImage = transform.GetComponent<FlyImage>();
        tmpBtn.onClick.AddListener(OnClick);
    }
@@ -21,7 +21,7 @@
    }
    bool countdown;
    float timer;
    public void Init()
    {
        timer = 0;
@@ -47,8 +47,16 @@
    private void StartFly()
    {
        tmpBtn.interactable = false;
        RectTransform end = GameObject.Find("UICamera/MainUI/FlyEndPos").GetComponent<RectTransform>();
        flyImage.SetDestination(null, transform.position, end.position, true);
        Transform end = GameObject.Find("UICamera/MainUI/FlyEndPos").transform;
        //金币飞动 增加多少个金币,制造多少个
        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);
    }
}