mirror of
				https://github.com/MaddyThorson/StrawberryBF.git
				synced 2025-11-04 01:41:33 +08:00 
			
		
		
		
	Cleaning
This commit is contained in:
		@ -62,7 +62,9 @@ namespace Strawberry
 | 
				
			|||||||
			Scene?.Remove(this);
 | 
								Scene?.Remove(this);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// ===== Components =====
 | 
							/*
 | 
				
			||||||
 | 
								Components
 | 
				
			||||||
 | 
							*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		public T First<T>() where T : Component
 | 
							public T First<T>() where T : Component
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
@ -132,7 +134,9 @@ namespace Strawberry
 | 
				
			|||||||
			}
 | 
								}
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// ===== Position =====
 | 
							/*
 | 
				
			||||||
 | 
								Position
 | 
				
			||||||
 | 
							*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		public Vector Positionf;
 | 
							public Vector Positionf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -186,7 +190,7 @@ namespace Strawberry
 | 
				
			|||||||
			[Inline]
 | 
								[Inline]
 | 
				
			||||||
			get
 | 
								get
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				return (int)Math.Round(Positionf.X);
 | 
									return Calc.RoundToInt(Positionf.X);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			[Inline]
 | 
								[Inline]
 | 
				
			||||||
@ -201,7 +205,7 @@ namespace Strawberry
 | 
				
			|||||||
			[Inline]
 | 
								[Inline]
 | 
				
			||||||
			get
 | 
								get
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				return (int)Math.Round(Positionf.Y);
 | 
									return Calc.RoundToInt(Positionf.Y);
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			[Inline]
 | 
								[Inline]
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user