Example #1
0
 // Use this for initialization
 void Start()
 {
     originalPos = transform.localPosition;
     originalRot = transform.localRotation.eulerAngles;
     fireBurner  = GameObject.Find("fire_killer").GetComponent <fire_burner>();
     if (!debugMode)
     {
         this.IntroCamera();
     }
     else
     {
         callback();
     }
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        jumpCount     = 0;
        player        = GameObject.Find("Player");
        fireBurner    = GameObject.Find("fire_killer").GetComponent <fire_burner>();
        cameraUpdater = GameObject.Find("Main Camera").GetComponent <CameraUpdater>();

        timerController = gameObject.GetComponent <TimerController>();

        scorePos = new Rect(5, 5, 200, 30);

        scoreMiddlePos = new Rect(
            nativeWidth / 2 - 200,
            nativeHeight / 2 - 50,
            400,
            100
            );

        GameObject.Find("GlobalVars").GetComponent <GlobalVars> ().level = level;
    }