portal vfx rework - shield spell art added - logs made stackable - some portal script interference fixed
This commit is contained in:
@@ -21,20 +21,26 @@ public class PortalTeleporter : MonoBehaviour
|
||||
|
||||
private void Start()
|
||||
{
|
||||
linkedPortalTransform = linkedPortal.transform;
|
||||
_portalCanBeUsed = true;
|
||||
vfx_gameobject = transform.parent.Find("PortalFX").gameObject;
|
||||
audioSource = transform.parent.GetComponent<AudioSource>();
|
||||
audioSource.mute = true;
|
||||
if (_enabled)
|
||||
if (linkedPortal == null)
|
||||
{
|
||||
vfx_gameobject.SetActive(true);
|
||||
DisablePortal();
|
||||
}
|
||||
else
|
||||
{
|
||||
vfx_gameobject.SetActive(false);
|
||||
}
|
||||
|
||||
linkedPortalTransform = linkedPortal.transform;
|
||||
_portalCanBeUsed = true;
|
||||
vfx_gameobject = transform.parent.Find("PortalFX").gameObject;
|
||||
audioSource = transform.parent.GetComponent<AudioSource>();
|
||||
audioSource.mute = true;
|
||||
if (_enabled)
|
||||
{
|
||||
vfx_gameobject.SetActive(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
vfx_gameobject.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void OnTriggerEnter(Collider other)
|
||||
@@ -43,7 +49,7 @@ public class PortalTeleporter : MonoBehaviour
|
||||
Debug.Log(_enabled);
|
||||
if (_portalCanBeUsed && !_justUsed && _enabled)
|
||||
{
|
||||
if (other.name.StartsWith("Holster"))
|
||||
if (other.name.StartsWith("Holster") || other.tag.Contains(""))
|
||||
{
|
||||
Debug.Log("holster");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user