コード例 #1
0
ファイル: HookController.cs プロジェクト: GustavGMD/GGJ2018
    public void StartAttack()
    {
        if (readyToFire)
        {
            readyToFire = false;

            hookTip.SetActive(true);

            //set the animation parameters
            _potaTween.Clear();
            _potaTween.SetScale(preAttackScale, attackTargetScale);
            _potaTween.SetEaseEquation(Ease.Equation.OutSine);
            _potaTween.SetDuration(0.4f);
            _potaTween.Play(delegate
            {
                StopAttack();
            });
            //tailSprite.GetComponent<Animator>().SetTrigger("Attack");
        }
    }
コード例 #2
0
    public void GrowingAnimation(float p_delay)
    {
        if (GetComponent <PotaTween>() == null)
        {
            PotaTween.Create(gameObject);
        }
        PotaTween __pTween = GetComponent <PotaTween>();

        __pTween.SetScale(transform.localScale, Vector3.one * (10 + (capturedPlayersStack.Count)));
        __pTween.SetEaseEquation(Ease.Equation.OutElastic);
        __pTween.SetDelay(p_delay);
        __pTween.Play(delegate
        {
            UpdateHookPivots();
        });
        //UpdateHookPivots();
    }