GetCenter() public method

public GetCenter ( Vector3 &pos ) : void
pos Vector3
return void
Esempio n. 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);
	}