void Start()
    {
        // 初期配置時のRPC管理クラスを取得
        unitPlaceCompJudRPC = GameObject.Find("Canvas_TimerInUnitPlace").GetComponent<UnitPlaceCompJudRPC>();

        // 1P2PのTextコンポ取得、およびテキストの初期化
        master = this.gameObject.transform.FindChild("1Pvalue").gameObject.GetComponent<Text>();
        slave = this.gameObject.transform.FindChild("2Pvalue").gameObject.GetComponent<Text>();
        master.text = "- - - - - -";
        slave.text = "- - - - - -";
    }
예제 #2
0
    void Start()
    {
        // バトル参加中ユニットリスト管理クラスを取得
        unitListInBattle = GameObject.Find("Canvas").GetComponent<BattleUnitList>();

        // 初期配置時のRPC管理クラスを取得
        unitPlaceCompJudRPC = GameObject.Find("Canvas_TimerInUnitPlace").GetComponent<UnitPlaceCompJudRPC>();

        // エフェクト再生クラス取得
        playEffect = new PlayEffect();

        // オーディオコンポを取得
        audioCompo = GameObject.Find("PlayersParent").transform.FindChild("SEPlayer").gameObject.GetComponent<AudioSource>();
        // TODO 本当はリクワイヤードコンポ属性を使うべき。上手く動いてくれなかったのでとりあえず
        if (null == audioCompo) audioCompo = GameObject.Find("PlayersParent").transform.FindChild("SEPlayer").gameObject.GetComponent<AudioSource>();
    }
예제 #3
0
	void Start()
    {
        // 初期配置時のRPC管理クラスを取得
        unitPlaceCompJudRPC = GameObject.Find("Canvas_TimerInUnitPlace").GetComponent<UnitPlaceCompJudRPC>();

        // インスペクタから設定し忘れていたらデフォルト値を入れる
        if (0 == timerValue) timerValue = 10;

        // 初期配置選択中タイマー、および初期配置選択中タイマーMax値のTextコンポ取得
        timerValueText = this.gameObject.transform.FindChild("Value").gameObject.GetComponent<Text>();
        maxTimerValueText = this.gameObject.transform.FindChild("MaxTime").gameObject.GetComponent<Text>();
        maxTimerValueText.text = timerValue.ToString(); // MAX値表示TextにMax値を設定

        // オーディオコンポを取得
        audioCompo = GameObject.Find("PlayersParent").transform.FindChild("SEPlayer").gameObject.GetComponent<AudioSource>();
        // TODO 本当はリクワイヤードコンポ属性を使うべき。上手く動いてくれなかったのでとりあえず
        if (null == audioCompo) audioCompo = GameObject.Find("PlayersParent").transform.FindChild("SEPlayer").gameObject.GetComponent<AudioSource>();
	}
예제 #4
0
	void Start ()
    {
        // サブジェクトコンポを取得し、オブサーバリストに自身を追加
        subjectCompo = GameObject.Find("Canvas_TimerInUnitPlace").GetComponent<UnitPlaceSubject>();
        subjectCompo.Attach(this);

        // 自身のImageコンポを取得
        thisImageCompo = this.gameObject.GetComponent<Image>();

        // バトル参加中ユニットリスト管理クラスを取得
        unitListInBattle = GameObject.Find("Canvas").GetComponent<BattleUnitList>();

        // 初期配置完了クラスを取得
        compJudRPC = subjectCompo.GetComponent<UnitPlaceCompJudRPC>();

        // オーディオコンポを取得
        audioCompo = GameObject.Find("PlayersParent").transform.FindChild("SEPlayer").gameObject.GetComponent<AudioSource>();
        // TODO 本当はリクワイヤードコンポ属性を使うべき。上手く動いてくれなかったのでとりあえず
        if (null == audioCompo) audioCompo = GameObject.Find("PlayersParent").transform.FindChild("SEPlayer").gameObject.GetComponent<AudioSource>();
	}