예제 #1
0
 // Use this for initialization
 void Awake()
 {
     speedY          = -6.0f;
     SM_Script       = GameObject.FindWithTag("SoundManager").gameObject.GetComponent <SoundManagerScript>();
     GM_Script       = GameObject.FindWithTag("GameManager").gameObject.GetComponent <GMRacing>();
     GerryCan_Script = GameObject.FindWithTag("GerryCanManager").gameObject.GetComponent <GerryCanManager>();
     QM_Script       = GameObject.FindWithTag("QuestionManager").gameObject.GetComponent <QMRacing>();
     firstNum        = transform.GetChild(0).GetComponent <SpriteRenderer>();
     secondNum       = transform.GetChild(1).GetComponent <SpriteRenderer>();
 }
예제 #2
0
    void Start()

    {
        GM_Script     = GameObject.FindWithTag("GameManager").gameObject.GetComponent <GMRacing>();
        isGameRunning = true;
        num1Left.GetComponent <Image>();
        num1Right.GetComponent <Image>();
        num2Left.GetComponent <Image>();
        num2Right.GetComponent <Image>();
        Operator.GetComponent <Image>();
        difficulty = "Normal" /*SVM_Script.Instance.gameDifficulty*/;
        StartQues();
    }