18 lines
316 B
C#
18 lines
316 B
C#
using Godot;
|
|
|
|
using System.Collections.Generic;
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
using System.Reflection;
|
|
|
|
namespace Rokojori
|
|
{
|
|
public static class ControlExtensions
|
|
{
|
|
public static Vector2 GetCenter( this Control control )
|
|
{
|
|
return control.Position + control.Size * 0.5f;
|
|
}
|
|
|
|
}
|
|
} |