28 lines
706 B
C#
28 lines
706 B
C#
using UnityEngine;
|
|
|
|
namespace InterfaceOff
|
|
{
|
|
public abstract class WindowBase : MonoBehaviour
|
|
{
|
|
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() { }
|
|
}
|
|
}
|