Fix Point2 outline visual script bug, show Shose without outline at start, only show point2 after camera3 switches, and fix Shose undo removing camera reversion
This commit is contained in:
@@ -72,7 +72,12 @@ public class Point2ClickHandler : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
if (nextObject != null) nextObject.SetActive(true);
|
||||
if (nextObject != null)
|
||||
{
|
||||
var shoseHandler = nextObject.GetComponent<ShoseClickHandler>();
|
||||
if (shoseHandler != null) shoseHandler.enabled = true;
|
||||
else nextObject.SetActive(true);
|
||||
}
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
@@ -81,7 +86,12 @@ public class Point2ClickHandler : MonoBehaviour
|
||||
_clicked = false;
|
||||
if (_meshRenderer != null) _meshRenderer.enabled = true;
|
||||
|
||||
if (nextObject != null) nextObject.SetActive(false);
|
||||
if (nextObject != null)
|
||||
{
|
||||
var shoseHandler = nextObject.GetComponent<ShoseClickHandler>();
|
||||
if (shoseHandler != null) shoseHandler.enabled = false;
|
||||
else nextObject.SetActive(false);
|
||||
}
|
||||
|
||||
var woman = GameObject.Find("woman");
|
||||
if (woman != null)
|
||||
|
||||
Reference in New Issue
Block a user