Skip to content
Snippets Groups Projects
Commit 61a3aec8 authored by Saul Sayers's avatar Saul Sayers
Browse files

fix: openShopkeeper kalau jeda aja

parent 5af10abe
No related merge requests found
......@@ -30,15 +30,17 @@ public class ShopKeeperManager : MonoBehaviour
float distance = Vector3.Distance(shopKeeper.transform.position, player.transform.position);
bool isPressedTab = Input.GetKeyDown(KeyCode.Tab);
if (distance < 7.5 && JedaManager.isJeda) {
if (isPressedTab) {
ShowShopKeeper();
if (JedaManager.isJeda){
if (distance < 7.5) {
if (isPressedTab) {
ShowShopKeeper();
} else {
NotificationManager.ShowNotification("Press Tab to open the Shopkeeper!!", 0.2f);
}
} else {
NotificationManager.ShowNotification("Press Tab to open the Shopkeeper!!", 0.2f);
}
} else {
if (isPressedTab) {
NotificationManager.ShowNotification("Go to the Dollhouse to open the shopkeeper!!", 2.0f);
if (isPressedTab) {
NotificationManager.ShowNotification("Go to the Dollhouse to open the shopkeeper!!", 2.0f);
}
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment