04.07.2022

This commit is contained in:
Plotnikov
2022-07-04 13:15:35 +03:00
parent 5fad2bcf6b
commit 696daa0b2e
7224 changed files with 3814576 additions and 0 deletions

View 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);
}
}