fixed 9/11
This commit is contained in:
20
Assets/Scripts/TheTowersMustFall.cs
Normal file
20
Assets/Scripts/TheTowersMustFall.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class TheTowersMustFall : MonoBehaviour
|
||||
{
|
||||
Animator animator;
|
||||
KeyCode hitTowersButton = KeyCode.L;
|
||||
void Start()
|
||||
{
|
||||
animator = GetComponent<Animator>();
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
if (Input.GetKeyDown(hitTowersButton))
|
||||
animator.SetBool("Fall", true);
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/TheTowersMustFall.cs.meta
Normal file
11
Assets/Scripts/TheTowersMustFall.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9447c82152d77e143b1f39f2d4f2292e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user