mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/MI-38.git
synced 2026-01-24 08:25:38 +03:00
04.07.2022
This commit is contained in:
34
Heli_with_panels/Assets/ui/Anim0102/AnimMigScript.cs
Normal file
34
Heli_with_panels/Assets/ui/Anim0102/AnimMigScript.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user