RiftMayhem/Assets/Scripts/VisualEffects/ChaoticMovementFX.cs
Pedro Gomes 9903af1fb7 Updates And new abilities
- Updated mirror image visuals
- New Vamp/Cultist/Satanist ability: Bat Swarm
- Updated Channeled abilities to have a cost per tick, and lowered initial costs significantly to take this into consideration.
2024-12-28 12:48:09 +00:00

45 lines
925 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ChaoticMovementFX : MonoBehaviour
{
public float rotationSpeed = 30f;
public RotationalAxis rotationAxis;
Vector3 axis;
private void Start()
{
switch (rotationAxis)
{
case RotationalAxis.X:
axis = Vector3.right;
break;
case RotationalAxis.Y:
axis = Vector3.up;
break;
case RotationalAxis.Z:
axis = Vector3.forward;
break;
default:
break;
}
}
// Update is called once per frame
void Update()
{
transform.Rotate(axis * rotationSpeed * Time.deltaTime);
}
private void OnEnable()
{
}
private void OnDisable()
{
this.transform.localRotation = Quaternion.identity;
}
}