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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user