コード例 #1
0
 public void GhunterCheckObject(PlayerFindScript GhunterPlayerFindScript)
 {
     StartCoroutine(mainConnectionScript.GhunterChecksForGhost(idx, checkedHidableObjectidx, GhunterPlayerFindScript));
 }
コード例 #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();
        }
    }