mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/MI-38.git
synced 2026-01-24 09:55:38 +03:00
04.07.2022
This commit is contained in:
36
Heli_with_panels/Assets/Fusel/scripts/UI/UI_Scale_anim.cs
Normal file
36
Heli_with_panels/Assets/Fusel/scripts/UI/UI_Scale_anim.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
public class UI_Scale_anim : MonoBehaviour
|
||||
{
|
||||
public AnimationClip UIscale;
|
||||
public AnimationClip UIscaleRevers;
|
||||
Animation anim;
|
||||
|
||||
void Start()
|
||||
{
|
||||
anim = GetComponent<Animation>();
|
||||
}
|
||||
//public void OnPointerDown(PointerEventData eventData)
|
||||
//{
|
||||
// anim.clip = UIdrag;
|
||||
// anim.Play();
|
||||
//}
|
||||
//public void OnPointerUp(PointerEventData eventData)
|
||||
//{
|
||||
// anim.clip = UIdragRevers;
|
||||
// anim.Play();
|
||||
//}
|
||||
public void AnimPlay()
|
||||
{
|
||||
anim.clip = UIscale;
|
||||
anim.Play();
|
||||
}
|
||||
public void AnimPlayRevers()
|
||||
{
|
||||
anim.clip = UIscaleRevers;
|
||||
anim.Play();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b15d3c274ca801846a93045c161ae57b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
36
Heli_with_panels/Assets/Fusel/scripts/UI/UI_drag_anim.cs
Normal file
36
Heli_with_panels/Assets/Fusel/scripts/UI/UI_drag_anim.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
public class UI_drag_anim : MonoBehaviour//, IPointerDownHandler, IPointerUpHandler
|
||||
{
|
||||
public AnimationClip UIdrag;
|
||||
public AnimationClip UIdragRevers;
|
||||
Animation anim;
|
||||
|
||||
void Start ()
|
||||
{
|
||||
anim = GetComponent<Animation>();
|
||||
}
|
||||
//public void OnPointerDown(PointerEventData eventData)
|
||||
//{
|
||||
// anim.clip = UIdrag;
|
||||
// anim.Play();
|
||||
//}
|
||||
//public void OnPointerUp(PointerEventData eventData)
|
||||
//{
|
||||
// anim.clip = UIdragRevers;
|
||||
// anim.Play();
|
||||
//}
|
||||
public void AnimPlay()
|
||||
{
|
||||
anim.clip = UIdrag;
|
||||
anim.Play();
|
||||
}
|
||||
public void AnimPlayRevers()
|
||||
{
|
||||
anim.clip = UIdragRevers;
|
||||
anim.Play();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1dcae1a4570f4e24caa0a6253448124f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user