void Awake()
    {
        checkBools = GameObject.Find("miniStage2").GetComponent <stage3_2_Manager>();
        thisName   = this.name;
        touchCount = 0;
        act2       = false;
        goRotate   = false;
        countTime  = 0;
        dogDog     = GameObject.Find("dog_2");

        if (addObj != null)
        {
            addObj.SetActive(false);
        }
        if (thisName == "carFront")
        {
            firstRotation = onOff[3].transform.rotation;
        }

        //3-2-2
        if (thisName == "wateringPot")
        {
            for (int i = 0; i < onOff.Length; i++)
            {
                onOff[i].SetActive(false);
            }
        }
    }
예제 #2
0
    void Awake()
    {
        checkBools = GameObject.Find("miniStage2").GetComponent <stage3_2_Manager>();
        thisName   = this.name;

        audioManager = GameObject.Find("soundManager");
        audioChange  = audioManager.GetComponent <AudioSource>();
        handKG       = audioManager.GetComponent <audioControl>().lightSwitch;

        triggerOn = false;
    }
예제 #3
0
    void Awake()
    {
        checkBools = GameObject.Find("miniStage2").GetComponent <stage3_2_Manager>();
        thisName   = this.name;
        eEffect    = GameObject.Find("electricityEffect");

        audioManager = GameObject.Find("soundManager");
        audioChange  = audioManager.GetComponent <AudioSource>();
        spark        = audioManager.GetComponent <audioControl>().spark1;
        eEffect.SetActive(false);
    }
예제 #4
0
 void Awake()
 {
     checkBools = GameObject.Find("miniStage2").GetComponent <stage3_2_Manager>();
     thisName   = this.name;
     countTime  = 0;
     firstPos   = this.transform.position;
     rightPos1  = false;
     flying     = true;
     nowAct     = false;
     sitdown.SetActive(false);
 }
예제 #5
0
    void Awake()
    {
        checkBools  = GameObject.Find("miniStage2").GetComponent <stage3_2_Manager>();
        thisName    = this.name;
        nowWatering = false;
        countTime   = 0;

        audioManager = GameObject.Find("soundManager");
        audioChange  = audioManager.GetComponent <AudioSource>();
        onGround     = audioManager.GetComponent <audioControl>().foundKey;
        getgetWater  = audioManager.GetComponent <audioControl>().getgetKey;
    }
예제 #6
0
    void Awake()
    {
        checkBools = GameObject.Find("miniStage2").GetComponent <stage3_2_Manager>();
        speed      = 0;
        dogAni     = GetComponent <Animator>();
        stageM     = GameObject.Find("MainCamera").GetComponent <stageManager>();

        if (sleepingGun[0] != null)
        {
            sleepingGun[0].SetActive(true);
            sleepingGun[1].SetActive(false);
            sleepingGun[2].SetActive(false);
        }
        shootDog = false;

        audioManager = GameObject.Find("soundManager");
        audioChange  = audioManager.GetComponent <AudioSource>();
        barkBark     = audioManager.GetComponent <audioControl>().dogBark;
        colorGet     = audioManager.GetComponent <audioControl>().getColor;
        byebye       = audioManager.GetComponent <audioControl>().forStage3;
        gun1         = audioManager.GetComponent <audioControl>().gun1;
        gun2         = audioManager.GetComponent <audioControl>().gun2;
    }