Example #1
0
    //  Animation functions
    public void SetAnimation(BulletAnimStateEnum arg_bulletAnimStateEnum)
    {
        if (bulletScript.GetBullet().GetAnimState() == arg_bulletAnimStateEnum)
        {
            return;
        }

        animator.Play(arg_bulletAnimStateEnum.ToString());
        bulletScript.GetBullet().SetAnimState(arg_bulletAnimStateEnum);
    }