コード例 #1
0
 void Start()
 {
     highlightZebSafebox   = GameObject.Find("highlightZebSafebox");
     highlightZebSafebox02 = GameObject.Find("highlightZebSafebox02");
     explosionScript       = GameObject.Find("explosion").GetComponent <safeBoxExplosion_level08>();
     explosion02Script     = GameObject.Find("explosion02").GetComponent <safeBoxExplosion02_level08>();
     rhino                     = GameObject.Find("rhino");
     rhinoScript               = GameObject.Find("rhino").GetComponent <rhino_Level_08>();
     timerSB_10secondsScript   = GameObject.Find("timerSB_10seconds").GetComponent <timerSB_10seconds>();
     timerSB02_10secondsScript = GameObject.Find("timerSB02_10seconds").GetComponent <timerSB02_10seconds>();
     anim = this.GetComponent <Animator>();
 }
コード例 #2
0
    void Start()
    {
        highlightZebMeercat01 = GameObject.Find("highlightZebMeercat01");
        highlightZebMeercat02 = GameObject.Find("highlightZebMeercat02");
        highlightZebMeercat03 = GameObject.Find("highlightZebMeercat03");
        highlightZebRabbit01  = GameObject.Find("highlightZebRabbit01");
        highlightZebRabbit02  = GameObject.Find("highlightZebRabbit02");
        highlightZebRabbit03  = GameObject.Find("highlightZebRabbit03");
        highlightZebRabbit04  = GameObject.Find("highlightZebRabbit04");
        highlightZebTeller01  = GameObject.Find("highlightZebTeller01");
        highlightZebTeller02  = GameObject.Find("highlightZebTeller02");
        highlightZebTeller03  = GameObject.Find("highlightZebTeller03");
        highlightZebTeller04  = GameObject.Find("highlightZebTeller04");
        highlightZebTeller05  = GameObject.Find("highlightZebTeller05");
        highlightZebTeller06  = GameObject.Find("highlightZebTeller06");

        moneyTeller01 = GameObject.Find("moneyTeller01");
        moneyTeller02 = GameObject.Find("moneyTeller02");
        moneyTeller03 = GameObject.Find("moneyTeller03");
        moneyTeller04 = GameObject.Find("moneyTeller04");
        moneyTeller05 = GameObject.Find("moneyTeller05");
        moneyTeller06 = GameObject.Find("moneyTeller06");

        monkey       = GameObject.Find("monkey");
        monkeyScript = GameObject.Find("monkey").GetComponent <monkey_Level_06>();

        timerM1_10secondsScript   = GameObject.Find("timerM1_10seconds").GetComponent <timerM1_10seconds>();
        timerM2_10secondsScript   = GameObject.Find("timerM2_10seconds").GetComponent <timerM2_10seconds>();
        timerM3_10secondsScript   = GameObject.Find("timerM3_10seconds").GetComponent <timerM3_10seconds>();
        timerR1_10secondsScript   = GameObject.Find("timerR1_10seconds").GetComponent <timerR1_10seconds>();
        timerR2_10secondsScript   = GameObject.Find("timerR2_10seconds").GetComponent <timerR2_10seconds>();
        timerR3_10secondsScript   = GameObject.Find("timerR3_10seconds").GetComponent <timerR3_10seconds>();
        timerR4_10secondsScript   = GameObject.Find("timerR4_10seconds").GetComponent <timerR4_10seconds>();
        timerT1_10secondsScript   = GameObject.Find("timerT1_10seconds").GetComponent <timerT1_10seconds>();
        timerT2_10secondsScript   = GameObject.Find("timerT2_10seconds").GetComponent <timerT2_10seconds>();
        timerT3_10secondsScript   = GameObject.Find("timerT3_10seconds").GetComponent <timerT3_10seconds>();
        timerT4_10secondsScript   = GameObject.Find("timerT4_10seconds").GetComponent <timerT4_10seconds>();
        timerT5_10secondsScript   = GameObject.Find("timerT5_10seconds").GetComponent <timerT5_10seconds>();
        timerT6_10secondsScript   = GameObject.Find("timerT6_10seconds").GetComponent <timerT6_10seconds>();
        timerSB_10secondsScript   = GameObject.Find("timerSB_10seconds").GetComponent <timerSB_10seconds>();
        timerSB02_10secondsScript = GameObject.Find("timerSB02_10seconds").GetComponent <timerSB02_10seconds>();

        anim = this.GetComponent <Animator>();
    }