예제 #1
0
    private IEnumerator Slerp()
    {
        yield return(new WaitForSeconds(m_delay));

        SlerpTarget target = BindingManager.Instance.GetSlerpTarget(m_slerpTarget);
        int         num    = Mathf.Max(b: Mathf.Min(GetProperty <int>().Value, m_max), a: m_min);

        for (int i = 0; i < num; i++)
        {
            target.SlerpFromHud(base.transform.position);
        }
    }
예제 #2
0
    public void PerformWelcomeBack()
    {
        Singleton <FundRunner> .Instance.AddCoins(Coins.Value);

        SlerpTarget    target = BindingManager.Instance.CoinsTarget;
        UIPopupManager popup  = BindingManager.Instance.WelcomeBackParent;

        for (int i = 0; i < 10; i++)
        {
            Observable.Return(value: true).Delay(TimeSpan.FromSeconds((double)i * 0.1)).Take(1)
            .Subscribe(delegate
            {
                target.SlerpFromHud(popup.transform.position);
            });
        }
        CollectedCoins.Value = Coins.Value;
        PlayerData.Instance.WelcomebackCoins.Value = 0L;
    }