예제 #1
0
    // Use this for initialization
    void Start()
    {
        // フラグの初期化
        DragFlag = false;
        touch    = false;

        // パーティクルを生成
        m_ClickParticle = (GameObject)Instantiate(CLICK_PARTICLE);
        m_DragParticle  = (GameObject)Instantiate(DRAG_PARTICLE);

        // パーティクルの再生停止を制御するためコンポーネントを取得
        m_ClickParticleSystem = m_ClickParticle.GetComponent <ParticleSystem>();
        m_DragParticleSystem  = m_DragParticle.GetComponent <ParticleSystem>();

        // 再生を止める(万が一急に再生されないように)
        m_ClickParticleSystem.Stop();
        m_DragParticleSystem.Stop();

        //タッチ状態管理Managerの取得
        TouchStateManagerObj    = GameObject.Find("TouchStateManager");
        TouchStateManagerScript = TouchStateManagerObj.GetComponent <TouchStateManager>();

        SceneNavigatorObj = GameObject.Find("SceneNavigator");
        script            = SceneNavigatorObj.GetComponent <SceneNavigator>();
        audioSource       = GetComponent <AudioSource>();
    }
예제 #2
0
    //=======================亀山

    //=========================
    // 初期化処理
    //=========================
    void Start()
    {
        //タッチ状態管理Managerの取得
        TouchStateManagerObj    = GameObject.Find("TouchStateManager");
        TouchStateManagerScript = TouchStateManagerObj.GetComponent <TouchStateManager>();

        managerObj    = GameObject.Find("StageManager");
        managerScript = managerObj.GetComponent <manager>();
    }
예제 #3
0
    //=========================
    // 初期化処理
    //=========================
    void Start()
    {
        //タッチ状態管理Managerの取得
        TouchStateManagerObj    = GameObject.Find("TouchStateManager");
        TouchStateManagerScript = TouchStateManagerObj.GetComponent <TouchStateManager>();

        managerObj         = GameObject.Find("StageManager");
        managerScript      = managerObj.GetComponent <manager>();
        canCreate          = false;
        startMoveWay       = new Vector3(0, 0, 0);
        CreatePosition     = new Vector3(0, 0, 0);
        MiddleBubbleisRotX = false;

        //Componentを取得
        audioSource  = GetComponent <AudioSource>();
        awa_Flag     = false;
        Kuttuki_Flag = false;
        isFusion     = false;
    }