示例#1
0
    void Start()
    {
        flashlight   = FindObjectOfType <Flashlight>();
        screamPlayer = FindObjectOfType <DaughterScream>();
        chainsaw     = FindObjectOfType <Chainsaw>();

        hasCollided = false;
    }
示例#2
0
    void Start()
    {
        soundPlayer  = GetComponentInParent <AudioSource>();
        player       = GameObject.FindGameObjectWithTag("Player");
        fpsCamera    = GameObject.FindGameObjectWithTag("MainCamera");
        screamPlayer = FindObjectOfType <DaughterScream>();

        isColliding  = false;
        faucetClosed = false;
    }