fixed controls, texts and added image, v1.4.1
This commit is contained in:
@@ -40,6 +40,9 @@ public class Controls : MonoBehaviour
|
||||
if(Cursor.lockState != CursorLockMode.Locked){
|
||||
Cursor.lockState = CursorLockMode.Locked;
|
||||
}
|
||||
GameObject.Find("txtInteract").GetComponent<Text>().text = GameObject.Find("txtInteract").GetComponent<Text>().text.Replace("[E]", "[ButtonEast]");
|
||||
GameObject.Find("txtInteraction_Tutorial").GetComponent<Text>().text = GameObject.Find("txtInteraction_Tutorial").GetComponent<Text>().text.Replace("[E]", "[ButtonEast]");
|
||||
GameObject.Find("txtTutorialGoal").GetComponent<Text>().text = GameObject.Find("txtTutorialGoal").GetComponent<Text>().text.Replace("[ESC]", "[Start]");
|
||||
}
|
||||
else{
|
||||
if(uihandler.canPlayerRotate()){
|
||||
@@ -48,6 +51,9 @@ public class Controls : MonoBehaviour
|
||||
else{
|
||||
Cursor.lockState = CursorLockMode.Confined;
|
||||
}
|
||||
GameObject.Find("txtInteract").GetComponent<Text>().text = GameObject.Find("txtInteract").GetComponent<Text>().text.Replace("[ButtonEast]", "[E]");
|
||||
GameObject.Find("txtInteraction_Tutorial").GetComponent<Text>().text = GameObject.Find("txtInteraction_Tutorial").GetComponent<Text>().text.Replace("[E]", "[ButtonEast]");
|
||||
GameObject.Find("txtTutorialGoal").GetComponent<Text>().text = GameObject.Find("txtTutorialGoal").GetComponent<Text>().text.Replace("[Start]", "[ESC]");
|
||||
}
|
||||
if(uihandler.state == UIState.GAME && playerInput.currentActionMap.name != "MainGame"){
|
||||
playerInput.SwitchCurrentActionMap("MainGame");
|
||||
|
||||
Reference in New Issue
Block a user