test commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class TinkyUnleashingSequence : MonoBehaviour
|
||||
{
|
||||
public DummyWinky dummyWinky;
|
||||
public Animator animator;
|
||||
|
||||
bool played = false;
|
||||
|
||||
public void Play()
|
||||
{
|
||||
if (played) return;
|
||||
played = true;
|
||||
|
||||
animator.Play("Unleash", 0, 0);
|
||||
}
|
||||
|
||||
public void WinkyEvent()
|
||||
{
|
||||
dummyWinky.Unleash();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 83fdad43615f9104a981586edd5010f8
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
|
||||
public class UnleasherButton : MonoBehaviour
|
||||
{
|
||||
public TinkyUnleashingSequence sequence;
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.CompareTag("Player Hand") || other.gameObject.layer == 3)
|
||||
sequence.Play();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c3609886a5a72634cb583a3e3e05e9db
|
||||
Reference in New Issue
Block a user