18 lines
466 B
C#
18 lines
466 B
C#
|
|
using UnityEngine;
|
|||
|
|
namespace Invector.vShooter
|
|||
|
|
{
|
|||
|
|
public class vBotRifleAnimationControl : MonoBehaviour
|
|||
|
|
{
|
|||
|
|
public Animator animator;
|
|||
|
|
public float pulseSpeed;
|
|||
|
|
void Start()
|
|||
|
|
{
|
|||
|
|
animator = GetComponent<Animator>();
|
|||
|
|
animator.SetFloat("PulseSpeed", pulseSpeed);
|
|||
|
|
}
|
|||
|
|
public void OnChangePowerChanger(float value)
|
|||
|
|
{
|
|||
|
|
animator.SetFloat("PowerCharger", value);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|