GetCenter() публичный Метод

public GetCenter ( Vector3 &pos ) : void
pos Vector3
Результат void
Пример #1
0
	void OnOpenMenu() {		
		//Get the center of the megatile selection
		Region region = new Region(InputManager.use.resourceTileSelection.ToArray());
		Vector3 center = Vector3.zero;
		region.GetCenter(out center);
		
		//Open the menu
		OpenMenu(center,center);
	}