示例#1
0
    void Awake()
    {
        // Cameraの取得
        cam = this.GetComponent <Camera>();
        // playerの取得
        player = GameObject.Find("Player");
        // PlayerControllerの取得
        pC = player.GetComponent <PlayerController>();
        // Playerのスキンの取得
        pSkin = GameObject.FindWithTag("PlayerTexture").GetComponent <SkinnedMeshRenderer>();
        // facePosの取得
        facePos = GameObject.Find("FacePos");
        // camPosの取得
        camPos = GameObject.Find("CamPos");
        // ClearLightの取得
        clearLight = GameObject.Find("ClearLight");
        // ClearJudgementの取得
        cJ = GameObject.Find("GameDirector").GetComponent <ClearJudgement>();
        // 追跡用ロボットの取得
        robot = GameObject.Find("TrackingRobot");
        // InsideColorBoxのMeshRendererの取得
        insideColorBox = GameObject.FindWithTag("InsideColorBox").GetComponent <MeshRenderer>();
        // BringingPosの取得
        bringingPos = GameObject.FindWithTag("BringingPos");

        GameObject uiD = GameObject.Find("UIDirector");

        // StageUIの取得
        sUI = uiD.GetComponent <StageUI>();
        // SFXPlayerの取得
        sfx_UI = uiD.GetComponent <SFXPlayer>();
    }
示例#2
0
    IEnumerator ReturnToStageSelectCoroutine(float fTime, float tTime)
    {
        fadeCanvas.SetActive(true);
        fI.maskTexture = tex_N;
        fade.FadeIn(fTime);

        // フェード時間中の時間を止める
        yield return(new WaitForSeconds(tTime));

        StageUI sUI = GameObject.Find("UIDirector").GetComponent <StageUI>();

        sUI.ReturnToStageSelect_SceneChange();
    }
示例#3
0
    IEnumerator RestartFadeInCoroutine()
    {
        fadeCanvas.SetActive(true);
        fI.maskTexture = tex_S;
        fade.FadeIn(fadeTime);

        // フェード時間中の時間を止める
        yield return(new WaitForSeconds(transitionTime));

        StageUI sUI = GameObject.Find("UIDirector").GetComponent <StageUI>();

        sUI.Restart_SceneChange();
    }
示例#4
0
    private void UpdateHiScore(GameObject ui)
    {
        StageUI stageUI  = ui.GetComponent <StageUI>();
        int     newScore = 0;

        if (stageUI)
        {
            newScore = stageUI.Score();
        }
        if (highScore < newScore)
        {
            highScore = newScore;
        }
    }
示例#5
0
    // public method
    // create game information
    public void DataInitialize()
    {
        manager          = GetComponent <GameManager>();
        customerAgentSet = GameObject.FindWithTag("CustomerSet").GetComponentsInChildren <CustomerAgent>();
        kakaoAgent       = GameObject.Find("KakaoAgent").GetComponent <KakaoAgent>();
        mainUI           = GameObject.FindWithTag("MainUI").GetComponent <UIManager>();
        stageUI          = mainUI.transform.Find("StageUI").GetComponent <StageUI>();

        isOpened = new bool[20];
        for (int i = 0; i < isOpened.Length; i++)
        {
            isOpened[i] = false;
        }
    }
示例#6
0
    IEnumerator OpeningControlStopCoroutine()
    {
        // 開幕n秒間の操作を止める
        yield return(new WaitForSeconds(2.0f));

        StageUI sUI = GameObject.Find("UIDirector").GetComponent <StageUI>();

        if (sUI.FirstStage)
        {
            sUI.HowToPlay01();
        }
        else
        {
            PlayMusicAndPlayer();
        }
    }
示例#7
0
    // public method
    // link element component
    public void LinkComponentElement()
    {
        // link structure
        manager = GameObject.FindWithTag("GameLogic").GetComponent <GameManager>();

        // link element component
        storeUI      = transform.Find("StoreUI").gameObject;
        storeUILogic = storeUI.GetComponent <StoreUI>();
        storeUILogic.LinkComponentElement();

        storageUI      = transform.Find("StorageUI").gameObject;
        storageUILogic = storageUI.GetComponent <StorageUI>();

        storeCustomizingSet      = transform.Find("CustomizeUI").gameObject;
        storeCustomizingSetLogic = storeCustomizingSet.GetComponent <CustomizeUI>();
        storeCustomizingSetLogic.LinkComponentElement();

        createUI      = transform.Find("CreateUI").gameObject;
        createUILogic = createUI.GetComponent <CreateUI>();

        sellItemSettingUI      = transform.Find("SellItemSettingUI").gameObject;
        sellItemSettingUILogic = sellItemSettingUI.GetComponent <SellItemSettingUI>();

        furnitureMarketUI      = transform.Find("FurnitureMarketUI").gameObject;
        furnitureMarketUILogic = furnitureMarketUI.GetComponent <FurnitureMarketUI>();

        stageUI      = transform.Find("StageUI").gameObject;
        stageUILogic = stageUI.GetComponent <StageUI>();

        resultRewardUI      = transform.Find("ResultRewardUI").gameObject;
        resultRewardUILogic = resultRewardUI.GetComponent <ResultRewardUI>();

        resultUI      = transform.Find("ResultUI").gameObject;
        resultUILogic = resultUI.GetComponent <ResultUI>();

        chatSceneUI      = transform.Find("ChatScene").gameObject;
        chatSceneUILogic = chatSceneUI.GetComponent <ChatSceneUI>();

        characterCreateUI      = transform.Find("CharacterCreateUI").gameObject;
        characterCreateUILogic = characterCreateUI.GetComponent <CharacterCreateUI>();

        questUI      = transform.Find("QuestUI").gameObject;
        questUILogic = questUI.GetComponent <QuestUI>();
        questUILogic.LinkComponentElement();

        loadingScene = transform.Find("LoadingScene").gameObject;
    }
示例#8
0
 // Start is called before the first frame update
 void Awake()
 {
     rBody = GetComponent <Rigidbody>();
     // Playerの直下の一番上に配置しているYagikun3DにアタッチされているAnimationControllerを取得する
     yagikun = transform.GetChild(0).gameObject;
     // Yagikun3DのArmatureの取得
     armature = GameObject.FindWithTag("Armature");
     // Armatureの初期回転角度の取得
     armature_InitialRot = armature.transform.localRotation;
     // プレイヤーの足元位置のTransformの取得(nextFaceの判定に使用する)
     footPosTra = GameObject.Find("FootPos").transform;
     // AnimationControllerの取得
     aC = yagikun.GetComponent <AnimationController>();
     // ClearJudgementの取得
     cJ = GameObject.Find("GameDirector").GetComponent <ClearJudgement>();
     cC = GameObject.Find("Camera").GetComponent <CameraController>();
     // StageUIの取得
     sUI = GameObject.Find("UIDirector").GetComponent <StageUI>();
 }
示例#9
0
 // Use this for initialization
 void Start()
 {
     this.stageUI = FindObjectOfType <StageUI>();
 }
示例#10
0
 private void Awake()
 {
     Instance = this;
 }