From dba218cc7e6d9d65da270575870eaa9f51908fa0 Mon Sep 17 00:00:00 2001 From: Cat Flynn Date: Fri, 5 Mar 2021 17:50:10 +0000 Subject: [PATCH] delete script --- .../AlphaChar/animationStateControler.cs | 34 ------------------- .../AlphaChar/animationStateControler.cs.meta | 11 ------ 2 files changed, 45 deletions(-) delete mode 100644 game/Assets/AlphaChar/animationStateControler.cs delete mode 100644 game/Assets/AlphaChar/animationStateControler.cs.meta diff --git a/game/Assets/AlphaChar/animationStateControler.cs b/game/Assets/AlphaChar/animationStateControler.cs deleted file mode 100644 index 37339bb..0000000 --- a/game/Assets/AlphaChar/animationStateControler.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using System.Diagnostics; -using UnityEngine; - -public class animationStateControler : MonoBehaviour -{ - Animator animator; - int isWalkingHash; - // Start is called before the first frame update - void Start() - { - animator = GetComponent(); - isWalkingHash = Animator.stringToHash("isWalking"); - - // Update is called once per frame - void Update() - { - bool isWalking = animator.GetBool("isWalking"); - bool forwardPressed = Input.GetKey('w'); - if (!isWalking && forwardPressed) - { - animator.SetBool(isWalking, true); - } - if (isWalking && !forwardPressed) - { - animator.SetBool(isWalking, false); - } - } - - -} -} - diff --git a/game/Assets/AlphaChar/animationStateControler.cs.meta b/game/Assets/AlphaChar/animationStateControler.cs.meta deleted file mode 100644 index 98c4e01..0000000 --- a/game/Assets/AlphaChar/animationStateControler.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: e25e06abe813c7648be3972ab5457391 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: