Removed all moving functionality

This commit is contained in:
Pasha Bibko
2026-01-13 13:28:15 +00:00
parent c15d917245
commit f6703c0908
3 changed files with 2 additions and 23 deletions

View File

@@ -8,11 +8,6 @@ namespace InterfaceOff
public WindowInteractions Interactions { get; set; }
public WindowComponents Components { get; set; }
protected Vector3 Velocity { get; set; }
[SerializeField] private int m_FlipCooldown;
private static int MAX_FLIP_COOLDOWN = 20;
public void InstantiateWindowBase()
{
transform.position = CanvasManager.GetRandomPositionOnCanvas();
@@ -20,22 +15,6 @@ namespace InterfaceOff
OnWindowInstantiation();
}
private void LateUpdate()
{
if (!CanvasManager.IsRectWithinCanvas(Components.Rect) && m_FlipCooldown == 0)
{
m_FlipCooldown = MAX_FLIP_COOLDOWN;
Velocity = -Velocity;
}
transform.position += Velocity * Time.deltaTime;
}
private void FixedUpdate()
{
m_FlipCooldown = Math.Clamp(m_FlipCooldown - 1, 0, MAX_FLIP_COOLDOWN);
}
public virtual void OnWindowInstantiation() { }
public virtual void OnWindowClicked() { }
}