From eeac6659f44c6af19d5f76bc1d2f956baaefe51d Mon Sep 17 00:00:00 2001 From: cyber-dream Date: Mon, 13 Jun 2022 02:56:18 +0300 Subject: [PATCH] delete obsolete script --- .../Assets/Scripts/Abilities/Ultraviolet.cs | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 ldjam50/Assets/Scripts/Abilities/Ultraviolet.cs diff --git a/ldjam50/Assets/Scripts/Abilities/Ultraviolet.cs b/ldjam50/Assets/Scripts/Abilities/Ultraviolet.cs deleted file mode 100644 index 5bda3e4..0000000 --- a/ldjam50/Assets/Scripts/Abilities/Ultraviolet.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public class Ultraviolet : MonoBehaviour -{ - [SerializeField] private GameObject beam; - - [SerializeField] private float rotationSpeed; - - [SerializeField] private float damage; - // Start is called before the first frame update - void Start() - { - - } - - // Update is called once per frame - void Update() - { - //beam.transform.rotation.eulerAngles += new Vector3(0, 0 0.2f); - transform.Rotate(new Vector3(0,0,1), rotationSpeed * Time.deltaTime); - } - - void OnTriggerEnter2D(Collider2D col) - { - if (col.gameObject.CompareTag("Mob")) - { - col.gameObject.GetComponent().SendMessage("ApplyDamage", damage); - } - } -}