Added a new moving window type

This commit is contained in:
Pasha Bibko
2026-01-13 11:16:16 +00:00
parent eae7b615d6
commit e235c9e440
9 changed files with 78 additions and 21 deletions

View File

@@ -7,11 +7,21 @@ namespace InterfaceOff
public WindowInteractions Interactions { get; set; }
public WindowComponents Components { get; set; }
public Vector3 Velocity { get; set; }
public void InstantiateWindowBase()
{
transform.position = CanvasManager.GetRandomPositionOnCanvas();
OnWindowInstantiation();
}
public void LateUpdate()
{
transform.position += Velocity * Time.deltaTime;
}
public virtual void OnWindowInstantiation() { }
public virtual void OnWindowClicked() { }
}
}