public EditorTool(EditorToolScript ets, Item i, BattleChat _battleChat) { editorToolScript = ets; item = i; active = false; battleChat = _battleChat; }
private void Start() { GlobalVars.Instance.DropedWeaponAllClear(); GlobalVars.Instance.ApplyAudioSource(); GlobalVars.Instance.SwitchFlashbang(bVis: false, Vector3.zero); GlobalVars.Instance.resetFever(timeover: true); InitializeFirstPerson(); battleChat = GetComponent <BattleChat>(); BrickManManager.Instance.OnStart(); delayLoad = true; deltaTime = 0f; BlackHole component = GameObject.Find("Main").GetComponent <BlackHole>(); if (component != null) { component.placeTo(new Vector3(37f, -15f, 37f)); } GameObject gameObject = GameObject.Find("Main"); if (gameObject != null) { ShooterTools component2 = gameObject.GetComponent <ShooterTools>(); if (component2 != null) { component2.DoBuff(); } } }
private void Start() { battleChat = GetComponent <BattleChat>(); editorToolScripts[0].desc = ConsumableManager.Instance.Get("build_tool"); editorToolScripts[1].desc = ConsumableManager.Instance.Get("line_tool"); editorToolScripts[2].desc = ConsumableManager.Instance.Get("replace_tool"); editorTool = new EditorTool[editorToolScripts.Length]; for (int i = 0; i < editorToolScripts.Length; i++) { Item i2 = null; long num = MyInfoManager.Instance.HaveFunction(editorToolScripts[i].desc.name); if (num >= 0) { i2 = MyInfoManager.Instance.GetItemBySequence(num); } if (editorToolScripts[i].desc.name == "build_tool") { editorTool[i] = new BuildTool(editorToolScripts[i], battleChat); } else if (editorToolScripts[i].desc.name == "line_tool") { editorTool[i] = new LineTool(editorToolScripts[i], i2, dummy, battleChat); } else if (editorToolScripts[i].desc.name == "replace_tool") { editorTool[i] = new ReplaceTool(editorToolScripts[i], i2, battleChat); } } editorTool[0].Activate(activate: true); }
private void changeParentChatMode() { GameObject gameObject = GameObject.Find("Main"); if (null != gameObject) { Lobby component = gameObject.GetComponent <Lobby>(); if (null != component) { component.lobbyChat.ChatMode = chatMode; } Briefing4TeamMatch component2 = gameObject.GetComponent <Briefing4TeamMatch>(); if (null != component2) { component2.lobbyChat.ChatMode = chatMode; } BattleChat component3 = gameObject.GetComponent <BattleChat>(); if (null != component3) { component3.ChatMode = chatMode; } SquadingMain component4 = gameObject.GetComponent <SquadingMain>(); if (null != component4) { component4.lobbyChat.ChatMode = chatMode; } SquadMain component5 = gameObject.GetComponent <SquadMain>(); if (null != component5) { component5.lobbyChat.ChatMode = chatMode; } } }
private void Start() { GlobalVars.Instance.DropedWeaponAllClear(); GlobalVars.Instance.ApplyAudioSource(); GlobalVars.Instance.SwitchFlashbang(bVis: false, Vector3.zero); InitializeFirstPerson(); battleChat = GetComponent <BattleChat>(); radar = GetComponent <Radar>(); timer = GetComponent <BndTimer>(); BrickManManager.Instance.OnStart(); VfxOptimizer.Instance.SetupCamera(); delayLoad = true; deltaTime = 0f; bndWall = bndWallObject.GetComponent <BndWall>(); GameObject gameObject = GameObject.Find("Main"); if (gameObject != null) { ShooterTools component = gameObject.GetComponent <ShooterTools>(); if (component != null) { component.DoBuff(); } } }
private void Start() { string[] array = new string[5] { "K_SHOOTER1", "K_SHOOTER2", "K_SHOOTER3", "K_SHOOTER4", "K_SHOOTER5" }; battleChat = GetComponent <BattleChat>(); VerifyAudioSource(); VerifyLocalController(); tools = new ShooterTool[MyInfoManager.Instance.ShooterTools.Length]; for (int i = 0; i < MyInfoManager.Instance.ShooterTools.Length; i++) { tools[i] = null; ConsumableDesc consumableDesc = null; Item itemBySequence = MyInfoManager.Instance.GetItemBySequence(MyInfoManager.Instance.ShooterTools[i]); if (itemBySequence != null && itemBySequence.IsAmount && itemBySequence.Template != null && itemBySequence.Template.type == TItem.TYPE.SPECIAL) { TSpecial tSpecial = (TSpecial)itemBySequence.Template; string func = TItem.FunctionMaskToString(tSpecial.functionMask); consumableDesc = ConsumableManager.Instance.Get(func); if (consumableDesc != null && !consumableDesc.isShooterTool) { consumableDesc = null; } } if (itemBySequence != null && consumableDesc != null) { tools[i] = new ShooterTool(this, consumableDesc, itemBySequence, base.audio, array[i], custom_inputs.Instance.GetKeyCodeName(array[i]), battleChat, localController); } } }
private void VerifyChatView() { GameObject gameObject = GameObject.Find("Main"); if (null != gameObject) { Lobby component = gameObject.GetComponent <Lobby>(); if (null != component) { chatView = component.bChatView; } Briefing4TeamMatch component2 = gameObject.GetComponent <Briefing4TeamMatch>(); if (null != component2) { chatView = component2.bChatView; } BattleChat component3 = gameObject.GetComponent <BattleChat>(); if (null != component3) { chatView = component3.IsChatting; } SquadingMain component4 = gameObject.GetComponent <SquadingMain>(); if (null != component4) { chatView = true; } SquadMain component5 = gameObject.GetComponent <SquadMain>(); if (null != component5) { chatView = true; } } }
private void Start() { GlobalVars.Instance.DropedWeaponAllClear(); GlobalVars.Instance.ApplyAudioSource(); GlobalVars.Instance.SwitchFlashbang(bVis: false, Vector3.zero); InitializeFirstPerson(); BrickManManager.Instance.OnStart(); VfxOptimizer.Instance.SetupCamera(); battleChat = GetComponent <BattleChat>(); delayLoad = true; deltaTime = 0f; bDelayBattle = false; dtBattle = 0f; monGenDeltaTime = 1000f; DefenseManager.Instance.init(); ResetDefensePoint(); GameObject gameObject = GameObject.Find("Main"); if (gameObject != null) { ShooterTools component = gameObject.GetComponent <ShooterTools>(); if (component != null) { component.DoBuff(); } } }
private void Start() { GlobalVars.Instance.DropedWeaponAllClear(); GlobalVars.Instance.ApplyAudioSource(); GlobalVars.Instance.SwitchFlashbang(bVis: false, Vector3.zero); InitializeFirstPerson(); battleChat = GetComponent <BattleChat>(); BrickManManager.Instance.OnStart(); VfxOptimizer.Instance.SetupCamera(); delayLoad = true; deltaTime = 0f; clockBomb = InstalledClockBomb.GetComponent <InstalledBomb>(); endCode = -1; endCodeDelta = 0f; showRoundMessage = true; if (MyInfoManager.Instance.Slot < 8) { bRedTeam = true; } else { bRedTeam = false; } GameObject gameObject = GameObject.Find("Main"); if (gameObject != null) { ShooterTools component = gameObject.GetComponent <ShooterTools>(); if (component != null) { component.DoBuff(); } } }
private void Start() { GlobalVars.Instance.DropedWeaponAllClear(); GlobalVars.Instance.ApplyAudioSource(); GlobalVars.Instance.SwitchFlashbang(bVis: false, Vector3.zero); InitializeFirstPerson(); battleChat = GetComponent <BattleChat>(); BrickManManager.Instance.OnStart(); VfxOptimizer.Instance.SetupCamera(); delayLoad = true; deltaTime = 0f; deltaTime4EndCode = 0f; deltaTime4ZombieMatch = 0f; deltaTime4ZombieStatus = 0f; newZombie = false; deltaNewZombie = 0f; endCode = -1; StartWaitingPhase(); GameObject gameObject = GameObject.Find("Main"); if (gameObject != null) { ShooterTools component = gameObject.GetComponent <ShooterTools>(); if (component != null) { component.DoBuff(); } } }
public LineTool(EditorToolScript ets, Item i, GameObject dummy, BattleChat _battleChat) : base(ets, i, _battleChat) { line = new Queue <GameObject>(); invisible = new Queue <GameObject>(); prefab = dummy; start = new Vector3(10000f, 10000f, 10000f); end = new Vector3(10000f, 10000f, 10000f); }
private void VerifyBattleChat() { if (null == battleChat) { GameObject gameObject = GameObject.Find("Main"); if (null != gameObject) { battleChat = gameObject.GetComponent <BattleChat>(); } } }
public ShooterTool(ShooterTools _tools, ConsumableDesc _desc, Item _item, AudioSource _audio, string _input, string _hotkey, BattleChat _battleChat, LocalController _localController) { tools = _tools; desc = _desc; item = _item; audio = _audio; input = _input; hotkey = _hotkey; active = true; battleChat = _battleChat; controller = _localController; coolTimeInst = desc.cooltime; switch (desc.name) { case "heal": case "heal50": case "heal30": { float num = MyInfoManager.Instance.SumFunctionFactor("hp_cooltime"); coolTimeInst = desc.cooltime - (float)Mathf.FloorToInt(num * desc.cooltime); break; } } }
public ReplaceTool(EditorToolScript ets, Item i, BattleChat _battleChat) : base(ets, i, _battleChat) { }
public BuildTool(EditorToolScript ets, BattleChat _battleChat) : base(ets, null, _battleChat) { }
private void Start() { battleChat = GetComponent <BattleChat>(); VerifyLocalController(); }