add project files
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
using UnityEngine;
|
||||
using OHM.UnityToolkit;
|
||||
using OHM.UnityToolkit.UI;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
public class WinZone : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
[FormerlySerializedAs("multCurrency")]
|
||||
private UIIncrementableCounter _multCurrency;
|
||||
|
||||
public int multCurency;
|
||||
|
||||
public bool millionaire;
|
||||
|
||||
public bool moveActive;
|
||||
|
||||
public string doorLevel;
|
||||
|
||||
public Animator doorAnim;
|
||||
|
||||
public GameObject gift;
|
||||
|
||||
public FX Fx;
|
||||
|
||||
[SerializeField]
|
||||
[Header("Sound")]
|
||||
[FormerlySerializedAs("passDoor")]
|
||||
private SFX _passDoor;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
if (_multCurrency != null)
|
||||
{
|
||||
_multCurrency.Init(0L);
|
||||
_multCurrency.SetTargetValue(multCurency);
|
||||
}
|
||||
}
|
||||
|
||||
public void Pass()
|
||||
{
|
||||
if (doorAnim != null)
|
||||
{
|
||||
doorAnim.SetTrigger("Open");
|
||||
}
|
||||
_passDoor.Play(base.transform);
|
||||
if (gift != null)
|
||||
{
|
||||
gift.gameObject.SetActive(value: true);
|
||||
}
|
||||
if (Fx != null)
|
||||
{
|
||||
Fx.PlayParticles();
|
||||
}
|
||||
}
|
||||
|
||||
public void Win()
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user