Removed TOTU 103
This commit is contained in:
		
							
								
								
									
										22
									
								
								Assets/Common/Scripts/FillHelpText.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								Assets/Common/Scripts/FillHelpText.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| // Copyright 2022-2024 Niantic. | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using UnityEngine; | ||||
| using UnityEngine.UI; | ||||
|  | ||||
| public class FillHelpText : MonoBehaviour | ||||
| { | ||||
|     [SerializeField] TextAsset textFile; | ||||
|     [SerializeField] Text uiTextBox; | ||||
|     // Scene info text to text box. | ||||
|     void Start() | ||||
|     { | ||||
|         if(textFile != null) | ||||
|             uiTextBox.text = textFile.text; | ||||
|     } | ||||
|      | ||||
|     public void moveToBottom(){ | ||||
|         Vector2 pos = gameObject.transform.parent.GetComponent<RectTransform>().anchoredPosition; | ||||
|         gameObject.transform.parent.GetComponent<RectTransform>().anchoredPosition = new Vector2(pos.x,1332); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Ignacio Gómez Puga
					Ignacio Gómez Puga