public void GhunterCheckObject(PlayerFindScript GhunterPlayerFindScript) { StartCoroutine(mainConnectionScript.GhunterChecksForGhost(idx, checkedHidableObjectidx, GhunterPlayerFindScript)); }
public IEnumerator GhunterChecksForGhost(int hidableObjectidx, int checkedHidableObjectidx, PlayerFindScript GhunterPlayerFindScript) { Debug.Log("Got Here"); yield return(StartCoroutine(CheckDomoticzSwitchStatus(hidableObjectidx))); bool ghostInObject = switchIsOn; Debug.Log(ghostInObject); if (ghostInObject) { yield return(ChangeDomoticzSwitchStatus(checkedHidableObjectidx, true)); GhunterPlayerFindScript.FoundGhost(); } }