Пример #1
0
 // Use this for initialization
 void Start()
 {
     //SEコントローラーを参照します
     seController = GameObject.Find("SEManager").GetComponent <SEController>();
     //ゲームシステムを参照しますします
     gameSystem = GameObject.Find("GameSystem").GetComponent <GameSystem>();
 }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        // SE
        SEControllerObject = GameObject.Find("SEController");
        SE = SEControllerObject.GetComponent("SEController") as SEController;
        // アイテム管理者の取得
        Item           = GameObject.Find("ItemRoot");
        ItemController = Item.GetComponent("ItemController") as ItemController;
        // ゲーム管理者取得
        var GameRule = GameObject.Find("GameRule");

        rule = GameRule.GetComponent("GameRule") as GameRule;

        // エフェクトの初期化
        InvinsibleEffect = transform.Find("energyBlast").GetComponent <ParticleSystem> ();
        InvinsibleEffect.Stop();
        // プレイヤーの向きベクトルの初期化
        oldVector = 1;

        transform.localRotation = Quaternion.LookRotation(new Vector3(1f, 0f, 0f));
        // キャラクターコントローラーの取得
        Col = gameObject.GetComponent("CharacterController") as CharacterController;

        // 声の管理者取得
        PlayerSE = GetComponent <PlayerSEManager> ();

        SetState(State);
    }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     //各UIオブジェクト表示を非表示にします
     pauseUI.SetActive(false);
     gameOverUI.SetActive(false);
     gameOverDialog.SetActive(false);
     if (GameSystem.stageNo <= 2)
     {
         //トピックUIを表示します
         topicUI.SetActive(true);
         //スタート時にトピックのスタートボタンのテクスチャーを指定します
         topicstartButton.GetComponent <Image>().sprite = topicStartButtonSprite[0];
     }
     else
     {
         //トピックUIを非表示します
         topicUI.SetActive(false);
     }
     //赤のスコア用オブジェクトの表示をfalseにします
     for (int i = 0; i < redScoerUI.Length; i++)
     {
         redScoerUI[i].SetActive(false);
     }
     //青のスコア用オブジェクトの表示をfalseにします
     for (int i = 0; i < redScoerUI.Length; i++)
     {
         blueScoerUI[i].SetActive(false);
     }
     seController = GameObject.Find("SEManager").GetComponent <SEController>();
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     eanima       = GetComponent <Animator>();
     SEController = GameObject.Find("exSE");
     secscript    = SEController.GetComponent <SEController>();
     secscript.exSE();
 }
 // Use this for initialization
 void Start()
 {
     //PlayerControllerを探して参照します
     playerController = GameObject.Find("Player").GetComponent <PlayerController>();
     //GameSystemを探して参照します
     gameSystem = GameObject.Find("GameSystem").GetComponent <GameSystem>();
     //SEControllerを探して参照します
     seController = GameObject.Find("SEManager").GetComponent <SEController>();
 }
Пример #6
0
    // Start is called before the first frame update
    void Start()
    {
        this.rb           = this.GetComponent <Rigidbody>();
        this.seController = GameObject.FindWithTag("SEController").GetComponent <SEController>();

        //最初の時点でのプレイヤーのポジションを取得
        Player_pos = GetComponent <Transform>().position;

        this.defaultScale = this.transform.localScale;
    }
Пример #7
0
    // Use this for initialization
    void Start()
    {
        Player = GameObject.FindGameObjectWithTag("Player");
        // キャラクターコントローラーを取得
        pc = Player.GetComponent("PlayerController") as PlayerController;

        leg                = GameObject.Find("Character1_Reference");
        direction          = new Vector3(0, -1, 0);
        SEControllerObject = GameObject.Find("SEController");
        se = SEControllerObject.GetComponent("SEController") as SEController;
    }
Пример #8
0
 // Use this for initialization
 void Start()
 {
     if (ItemType == ItemController.ITEM_TYPE.ITEM_COIN)
     {
         BlockLife = Random.Range(1, 5);
     }
     else
     {
         BlockLife = 1;
     }
     if (Application.loadedLevelName != "FieldCreateTool" && Application.loadedLevelName != "Title")
     {
         // SEの取得
         SEControllerObject = GameObject.Find("SEController");
         se = SEControllerObject.GetComponent("SEController") as SEController;
     }
 }
Пример #9
0
    // Start is called before the first frame update
    void Start()
    {
        this._image       = this.GetComponent <Image>();
        this._image.color = new Color(
            this._image.color.r,
            this._image.color.g,
            this._image.color.b,
            0
            );

        this.textConstant      = GameObject.Find("WinnerTextConstant").GetComponent <Text>();
        this.textConstant.text = "";
        this.winenrNames       = GameObject.Find("WinnerNames").GetComponent <Text>();
        this.winenrNames.text  = "";

        this.seController = GameObject.FindWithTag("SEController").GetComponent <SEController>();
        this._backBtn     = GameObject.Find("BackButton");
        this._backBtn.SetActive(false);
    }
Пример #10
0
 void Start()
 {
     //オブジェクトの格納
     scoreObject = GameObject.Find("ScoreObject");
     startObject = GameObject.Find("StartObject");
     billBoard   = GameObject.Find("BillBoard");
     //コンポーネントの格納
     sE = GameObject.Find("SE").GetComponent <SEController>();
     this.myAnimator             = GetComponent <Animator>();
     gameMethods                 = GameObject.Find("GameMethods").GetComponent <GameMethods>();
     opCounter                   = GameObject.Find("CountImage").GetComponent <OpCounter>();
     clearTimeText               = GameObject.Find("ClearTimeText").GetComponent <Text>();
     gameTitleTimeline           = GameObject.Find("GameTitleTimeline").GetComponent <PlayableController>();
     gameTitleTimelineChara      = GameObject.Find("GameTitleTimeline(Chara)").GetComponent <PlayableController>();
     gameSceneTimeline           = GameObject.Find("GameSceneTimeline").GetComponent <PlayableController>();
     gameTitleTimelineAfterScore = GameObject.Find("GameTitleTimeline(AfterScore)").GetComponent <PlayableController>();
     gameScoreTimeline           = GameObject.Find("GameScoreTimeline").GetComponent <PlayableController>();
     gameScoreTimelineChara      = GameObject.Find("GameScoreTimeline(Chara)").GetComponent <PlayableController>();
 }
Пример #11
0
 // Use this for initialization
 void Start()
 {
     //コンポーネントを事前に参照
     rigidbody = GetComponent <Rigidbody2D>();
     //プレイヤーシーンの状態をスタート状態にします
     playerState = PlayerState.Start;
     //プレイ中のプレイヤーの状態をノーマルモード状態にします
     nowPlayerState = NowPlayerState.NormalMoad;
     //ジャンプ判定をfalse(していない)状態に設定します
     jampingFrag = false;
     //アタック状態判定をfalse(していない)状態に設定します
     attackFlag = false;
     //アタック時間を初期化します
     attackTime = attackTimeValue;
     // アニメーションコンポーネント取得
     animatorComponent = gameObject.GetComponent <Animator>();
     //SEコントローラーを参照します
     seController = GameObject.Find("SEManager").GetComponent <SEController>();
     // サウンドソースコンポーネント取得
     //audioSource = gameObject.GetComponent<AudioSource>();
     //audioSource.clip = audioClip[0];
 }
Пример #12
0
 // Use this for initialization
 void Start()
 {
     gameSystem   = GameObject.Find("GameSystem").GetComponent <GameSystem>();
     seController = GameObject.Find("SEManager").GetComponent <SEController>();
 }
Пример #13
0
 // Use this for initialization
 void Start()
 {
     seController = GameObject.Find("SEManager").GetComponent <SEController>();
     exitButton.GetComponent <Image>().sprite  = exitSprite[0];
     retrybutton.GetComponent <Image>().sprite = retrySprite[0];
 }
Пример #14
0
 // Use this for initialization
 void Start()
 {
     // SEの取得
     SEControllerObject = GameObject.Find("SEController");
     SE = SEControllerObject.GetComponent("SEController") as SEController;
 }