private void Update() { if (!triggerScript.IsRaging && shyGuyFace.isVisible) { if (tools.objectIsVisible(playerCam, this.gameObject)) { triggerScript.rageMode(); } } }
bool playerCanSee() { if (peanutRender.isVisible) { if (tools.objectIsVisible(playerCam, this.gameObject)) { return(true); } } return(false); }