Files
MI-38/Heli_with_panels/Assets/ui/Anim0102/AnimMigScript.cs
2022-07-04 13:15:35 +03:00

35 lines
663 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AnimMigScript : MonoBehaviour
{
private Animator animMig;
private bool mig;
GameObject lamp;
// Start is called before the first frame update
void Start()
{
mig = true;
animMig = GetComponent<Animator>();
animMig.SetBool("Mig", mig);
}
// Update is called once per frame
void Update()
{
}
public void OnDown()
{
mig = false;
animMig.SetBool("Mig", mig);
}
public void OnUp()
{
mig = true;
animMig.SetBool("Mig", mig);
}
}