Bug Fixes from v1.0
- Fix lighting on desert - Move dialogue radius to correct spot - Disable movement while talking to NPCs - Move desert spawn point a little bit
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Scampz.GameJam.Assets.Scripts;
|
||||
using Scampz.GameJam.Assets.Scripts.Audio;
|
||||
using Scampz.GameJam.Assets.Scripts.Utilities;
|
||||
using TMPro;
|
||||
@@ -120,6 +121,9 @@ namespace Scampz.GameJam
|
||||
_dialogueTextGUI.text = string.Empty;
|
||||
IsTalking = false;
|
||||
SFXManager.Instance.StopSoundEffect();
|
||||
var player = GameObject.FindGameObjectWithTag("Player");
|
||||
var inputController = player.GetComponent<CharacterInputController>();
|
||||
inputController.EnableActions();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using Scampz.GameJam.Assets.Scripts;
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
@@ -33,7 +34,9 @@ namespace Scampz.GameJam
|
||||
private void OnTriggerExit(Collider other)
|
||||
{
|
||||
if (other.CompareTag("Player"))
|
||||
{
|
||||
_isWithinRange = false;
|
||||
}
|
||||
}
|
||||
|
||||
private void Update()
|
||||
@@ -41,10 +44,9 @@ namespace Scampz.GameJam
|
||||
if (_isWithinRange && confirmAction.triggered && !DialogueManager.Instance.IsTalking)
|
||||
{
|
||||
var player = GameObject.FindGameObjectWithTag("Player");
|
||||
var cc = player.GetComponent<CharacterController>();
|
||||
cc.enabled = false;
|
||||
var inputController = player.GetComponent<CharacterInputController>();
|
||||
inputController.DisableActions();
|
||||
_dialogueTrigger.TriggerDialogue();
|
||||
cc.enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user