protected void Setup()
    {
        if (pipeOrgan == null)
        {
            pipeOrgan = SoundPuzzleOrgan.instance;
        }
        if (pipeOrgan == null)
        {
            Debug.Log(gameObject.name + " " + this.name
                      + ":'Lonely, i feel so lonely... i've got no Organ to play with me!'");
        }

        if (quizMaster == null)
        {
            quizMaster = SoundPuzzleRiddler.instance;
        }
        if (quizMaster == null)
        {
            Debug.Log(gameObject.name + " " + this.name
                      + ":'Lonely, i feel so lonely... i've got no Riddler to play with me!'");
        }

        nextDeafDuration = minDontReactSeconds;

        if (transform.childCount > 0)
        {
            unpressedPosition  = transform.GetChild(0).localPosition;
            pressedPosition    = unpressedPosition;
            pressedPosition.y += pressedDownOffset;
        }
    }
예제 #2
0
 void Awake()
 {
     if (instance != null)
     {
         Debug.Log("Two " + this.name + " "
                   + instance.gameObject.name + "/" + this.gameObject.name);
     }
     instance = this;
 }