public void GhunterCheckObject(PlayerFindScript GhunterPlayerFindScript)
 {
     StartCoroutine(mainConnectionScript.GhunterChecksForGhost(idx, checkedHidableObjectidx, GhunterPlayerFindScript));
 }
Esempio n. 2
0
    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();
        }
    }