mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Update AchievementVolume.cs
This commit is contained in:
parent
1f96f55a35
commit
73f293f1d9
@ -1,9 +1,4 @@
|
|||||||
using NewHorizons.AchievementsPlus;
|
using NewHorizons.AchievementsPlus;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace NewHorizons.Components.Achievement
|
namespace NewHorizons.Components.Achievement
|
||||||
@ -24,7 +19,7 @@ namespace NewHorizons.Components.Achievement
|
|||||||
|
|
||||||
private void OnEntry(GameObject hitObj)
|
private void OnEntry(GameObject hitObj)
|
||||||
{
|
{
|
||||||
if ((!_player || hitObj.CompareTag("PlayerDetector")) && (!_probe || hitObj.CompareTag("ProbeDetector")))
|
if ((!player || hitObj.CompareTag("PlayerDetector")) && (!probe || hitObj.CompareTag("ProbeDetector")))
|
||||||
{
|
{
|
||||||
AchievementHandler.Earn(achievementID);
|
AchievementHandler.Earn(achievementID);
|
||||||
|
|
||||||
@ -34,8 +29,8 @@ namespace NewHorizons.Components.Achievement
|
|||||||
|
|
||||||
public string achievementID;
|
public string achievementID;
|
||||||
|
|
||||||
private bool _player = true;
|
public bool player = true;
|
||||||
private bool _probe;
|
public bool probe;
|
||||||
|
|
||||||
private OWTriggerVolume _trigger;
|
private OWTriggerVolume _trigger;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user