Update
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user