public bool IsGameTime;///ゲーム中か?(時間切れや勝利条件を満たしたならfalse) void Start() { system = this; time = start_time; IsGameTime = true; ChatSystem.userDatas = user; }
void Start() { mainSys = GetComponent <GameSceneSystem>(); ui = this; TeamICON = GameObject.Find("Canvas/teams").GetComponent <RawImage>(); timeCount = GameObject.Find("TimerUI_Canvas/TimerUI").GetComponent <TimerUI>(); TeamICON.texture = team == TeamType.Police ? (TeamIcon_Police != null ? TeamIcon_Police : null) : (TeamIcon_Reseller != null ? TeamIcon_Reseller : null); HP = GameObject.Find("Canvas/BG_HP&MONEY/HPbar").GetComponent <Slider>(); hpImg = GameObject.Find("Canvas/BG_HP&MONEY/HPbar/Fill Area/Fill").GetComponent <Image>(); moneyUiRoot = GameObject.Find("Canvas/BG_HP&MONEY/Money").GetComponent <RectTransform>(); money = new RawImage[12]; for (int x = 0; x < 12; x++) { money[x] = GameObject.Find("Canvas/BG_HP&MONEY/Money/" + x).GetComponent <RawImage>(); } moneyCamma = new RawImage[3]; for (int x = 0; x < 3; x++) { moneyCamma[x] = GameObject.Find("Canvas/BG_HP&MONEY/Money/camma" + x).GetComponent <RawImage>(); } var c = GameObject.Find("Canvas/Discription").transform; ps4 = new CTRLUI_Discription_TEXTUI(c.Find("ps4").gameObject); ps5 = new CTRLUI_Discription_TEXTUI(c.Find("ps5").gameObject); xbox = new CTRLUI_Discription_TEXTUI(c.Find("xbox").gameObject); keyboard = new CTRLUI_Discription_TEXTUI(c.Find("keyboard").gameObject); chatBOX = GameObject.Find("Canvas/Chat"); ctrlerDiscription = GameObject.Find("Canvas/Discription"); int gsui = PlayerPrefs.GetInt("GS-UI", 3); chatBOX.active = gsui / 2 == 1; ctrlerDiscription.active = gsui % 2 == 1; WeaponUI0 = new WeaponUI_obj(GameObject.Find("Canvas/WeaponUI0")); WeaponUI1 = new WeaponUI_obj(GameObject.Find("Canvas/WeaponUI1")); chatBOX.active = false; ctrlerDiscription.active = false; }