Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
//		start = true;
//		Debug.Log ("Camera Script Started");
//		tempC = 0;

        mdc = FindObjectOfType(typeof(mouseDragChild)) as mouseDragChild;


        origin = new Vector3(0f, 0f, -10f);
    }
Esempio n. 2
0
    /**
     * For initialization
     */
    void Start()
    {
        // find reference to the cell manager
        cellManager = FindObjectOfType(typeof(CellManager)) as CellManager;
        gm          = FindObjectOfType(typeof(StomachGameManager)) as StomachGameManager;
        //MD = FindObjectOfType(typeof(mouseDrag)) as mouseDrag;

        MDC = FindObjectOfType(typeof(mouseDragChild)) as mouseDragChild;

        // calculate button size based on screen size
        buttonSize.x = Screen.width * (186f / 1024f);
        buttonSize.y = Screen.height * (253f / 768f);
    }
Esempio n. 3
0
    /**
     * For initialization
     */
    void Start()
    {
        // get a reference to the image
        i = GetComponent <Image> ();

//        MD = FindObjectOfType(typeof(mouseDrag)) as mouseDrag;
        MDC             = FindObjectOfType(typeof(mouseDragChild)) as mouseDragChild;
        gm              = FindObjectOfType(typeof(StomachGameManager)) as StomachGameManager;
        burnToDeathTime = gm.TIME_TO_DIE;

        burnTimer = 0;


        audio               = GetComponent <AudioSource>();
        cellAudioBoolean    = new bool[2];
        cellAudioBoolean[0] = false;
        cellAudioBoolean[1] = false;
    }