exp menu and currencies menu animation
This commit is contained in:
File diff suppressed because it is too large
Load Diff
29
Assets/Game/Scripts/CurrenciesAnim.cs
Normal file
29
Assets/Game/Scripts/CurrenciesAnim.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class CurrenciesAnim : MonoBehaviour
|
||||
{
|
||||
public Animator anim;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void OpenCurrencyMenu()
|
||||
{
|
||||
if(anim != null)
|
||||
{
|
||||
bool isOpen = anim.GetBool("Open");
|
||||
anim.SetBool("Open", !isOpen);
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Game/Scripts/CurrenciesAnim.cs.meta
Normal file
11
Assets/Game/Scripts/CurrenciesAnim.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 282ef6821dd5f7440914f190fefcf710
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
23
Assets/Game/Scripts/ProfileMenu.cs
Normal file
23
Assets/Game/Scripts/ProfileMenu.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ProfileMenu : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void profileMenuOpen()
|
||||
{
|
||||
Debug.Log("Open profile menu");
|
||||
}
|
||||
}
|
||||
11
Assets/Game/Scripts/ProfileMenu.cs.meta
Normal file
11
Assets/Game/Scripts/ProfileMenu.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 962225ec31d82a94c8f64cff2d0947d6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user