예제 #1
0
    void Start()
    {
        currentObj = gameObject;
        gameViewer = currentObj.transform.GetChild(0).gameObject;
        camera     = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CameraZoomIn> ();
        flames     = GameObject.FindGameObjectWithTag("flames");
        if (bunsenburner != null)
        {
            StartCoroutine(LerpDown());
        }
        if (heatEx != null)
        {
            heatEx.SetActive(false);
        }
        if (mixEx != null)
        {
            mixEx.SetActive(false);
        }


        flameshigh  = new Vector3(1, 1, 1);
        flamesoff   = new Vector3(0, 0, 0);
        endPos      = new Vector3(-5, 9, -29);
        originalPos = new Vector3(0, 9, -29);
    }
예제 #2
0
 void Awake()
 {
     // 参照
     m_TitleManager = this.GetComponent <TitleManager>();
     m_CameraZoomIn = this.GetComponent <CameraZoomIn>();
     m_Fade         = this.GetComponent <Fade>();
     m_ButtonSystem = this.GetComponent <ButtonSystem>();
 }
예제 #3
0
    // Use this for initialization
    void Start()
    {
        currentObj = gameObject;
        gameViewer = currentObj.transform.gameObject;
        camera     = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CameraZoomIn> ();


        rend         = monitor.GetComponent <Renderer> ();
        rend.enabled = true;
    }
예제 #4
0
 // Use this for initialization
 void Start()
 {
     currentObj = gameObject;
     gameViewer = currentObj.transform.gameObject;
     camera     = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CameraZoomIn> ();
 }