private void Awake() { Scene.ActiveMB = this; Scene.GameStats = this._gameStats; Scene.SceneTracker = this._sceneTracker; Scene.MutantControler = this._mutantControler; Scene.MutantSpawnManager = this._mutantSpawnManager; Scene.Yacht = this._yacht; Scene.PlaneCrash = this._plane; Scene.PlaneCrashAnimGO = this._planeCrashAnimGO; Scene.TriggerCutScene = this._triggerCutScene; Scene.RainFollowGO = this._rainFollowGO; Scene.RainTypes = this._rainTypes; Scene.WeatherSystem = this._weatherSystem; Scene.HudGui = this._hudGui; Scene.Cams = this._cams; Scene.Clock = this._clock; Scene.Atmosphere = this._atmos; Scene.WorkScheduler = this._workScheduler; Scene.LoadSave = this._loadSave; Scene.PlaneGreebles = this._planeGreebles; Scene.OceanFlat = this._oceanFlat; Scene.OceanCeto = this._oceanCeto; Scene.ShoreMask = this._shoreMask; Scene.SinkHoleCenter = this._sinkHoleCenter; Scene.CaveGrounds = this._caveGrounds; }
private void OnDestroy() { Scene.ActiveMB = null; Scene.GameStats = null; Scene.SceneTracker = null; Scene.MutantControler = null; Scene.MutantSpawnManager = null; Scene.Yacht = null; Scene.PlaneCrash = null; Scene.PlaneCrashAnimGO = null; Scene.TriggerCutScene = null; Scene.RainFollowGO = null; Scene.RainTypes = null; Scene.WeatherSystem = null; Scene.HudGui = null; Scene.Cams = null; Scene.Clock = null; Scene.Atmosphere = null; Scene.WorkScheduler = null; Scene.LoadSave = null; Scene.PlaneGreebles = null; Scene.OceanFlat = null; Scene.OceanCeto = null; Scene.ShoreMask = null; Scene.SinkHoleCenter = null; Scene.CaveGrounds = null; }
void Shoot() { muzzleFlash.Play(); gunFire.Play(); RaycastHit hit; if (Physics.Raycast(fpsCam.transform.position, fpsCam.transform.forward, out hit, range)) { Debug.Log(hit.transform.name); ZombieController target = hit.transform.GetComponent <ZombieController>(); if (target != null) { target.TakeDamage(damage); } mutantController target2 = hit.transform.GetComponent <mutantController>(); if (target2 != null) { target2.TakeDamage(damage); } if (hit.rigidbody != null) { hit.rigidbody.AddForce(-hit.normal * impactForce); } Object impactGO = Instantiate(zombieHit, hit.point, Quaternion.LookRotation(hit.normal)); Destroy(impactGO, 0.3f); } }
private void Awake() { if (BoltNetwork.isClient) { UnityEngine.Object.Destroy(base.gameObject); return; } if (Cheats.NoEnemies) { this.amount_skinny_pale = 0; this.amount_male_skinny = 0; this.amount_female_skinny = 0; this.amount_male = 0; this.amount_female = 0; this.amount_fireman = 0; this.amount_pale = 0; this.amount_armsy = 0; this.amount_vags = 0; this.amount_baby = 0; this.amount_fat = 0; } this.tr = base.transform; this.sceneInfo = Scene.SceneTracker; this.mutantControl = Scene.MutantControler; }
private void Start() { this.mutantControl = Scene.MutantControler; if (UnityEngine.Random.value < 0.5f) { base.InvokeRepeating("startEatMeEvent", UnityEngine.Random.Range(0f, 3f), 15f); base.Invoke("stopEatEvent", 60f); } }
private void Start() { this.MyClock = Scene.Clock; this.mutantControl = Scene.MutantControler; this.sceneInfo = Scene.SceneTracker; this.netAnimator = base.transform.FindChild("player_BASE").GetComponent <Animator>(); base.InvokeRepeating("checkGroundTag", 1f, 2f); if (this.debugAddToPlayerList) { Scene.SceneTracker.allPlayers.Add(base.gameObject); } }
private void Start() { this.setup = base.GetComponentInChildren <mutantScriptSetup>(); this.spawnSetup = base.transform.root.GetComponent <mutantTypeSetup>(); this.ai = base.GetComponentInChildren <mutantAI>(); this.search = base.GetComponentInChildren <mutantSearchFunctions>(); this.animator = base.GetComponentInChildren <Animator>(); if (this.dragPoint) { this.dragPointInit = this.dragPoint.transform.localPosition; } this.mutantControl = Scene.MutantControler; this.health = base.GetComponentInChildren <EnemyHealth>(); this.fsmDeathBool = this.setup.pmCombat.FsmVariables.GetFsmBool("deathBool"); }
private void Awake() { this.animator = base.transform.GetComponentInChildren <Animator>(); this.getParams = base.GetComponent <getAnimatorParams>(); this.setup = base.transform.GetComponentInChildren <mutantScriptSetup>(); this.ai = base.transform.GetComponentInChildren <mutantAI>(); this.props = base.transform.GetComponentInChildren <mutantPropManager>(); this.propsFemale = base.transform.GetComponentInChildren <setupBodyVariation>(); this.health = base.transform.GetComponentInChildren <EnemyHealth>(); this.followSetup = base.transform.GetComponent <mutantFollowerFunctions>(); this.dayCycle = base.transform.GetComponentInChildren <mutantDayCycle>(); this.controlGo = Scene.MutantControler.gameObject; if (this.controlGo) { this.mutantControl = Scene.MutantControler; } this.spawnManager = this.controlGo.GetComponent <mutantSpawnManager>(); this.stats = base.transform.GetComponent <targetStats>(); this.waterLayer = LayerMask.NameToLayer("Water"); }
public MutantControllerTest() { _sut = new mutantController( _mediator.Object); }
private void Awake() { BleedBehavior.BloodAmount = 0f; BleedBehavior.BloodReductionRatio = 1f; this.explodeHash = Animator.StringToHash("explode"); this.DSpots = GameObject.FindWithTag("DeadSpots").GetComponent<DeadSpotController>(); this.Hud = Scene.HudGui; this.Ocean = GameObject.FindWithTag("Ocean"); this.mutantControl = Scene.MutantControler; this.sceneInfo = Scene.SceneTracker; this.Player = base.gameObject.GetComponent<PlayerInventory>(); this.camFollow = base.GetComponentInChildren<camFollowHead>(); this.hitReaction = base.GetComponent<playerHitReactions>(); this.Atmos = Scene.Atmosphere; this.FrostScript = LocalPlayer.MainCam.GetComponent<Frost>(); this.Tuts = LocalPlayer.Tuts; this.Sfx = LocalPlayer.Sfx; this.animator = LocalPlayer.Animator; this.DyingVision = LocalPlayer.MainCam.GetComponent<Grayscale>(); this.Fullness = 1f; this.bloodPropertyBlock = new MaterialPropertyBlock(); if (!LevelSerializer.IsDeserializing) { CoopPlayerVariations component = base.GetComponent<CoopPlayerVariations>(); this.PlayerVariation = UnityEngine.Random.Range(0, component.Variations.Length); this.PlayerVariationBody = UnityEngine.Random.Range(0, component.BodyMaterials.Length); } if (this.CurrentArmorTypes == null || this.CurrentArmorTypes.Length != this.ArmorModel.Length) { this.CurrentArmorTypes = new PlayerStats.ArmorTypes[this.ArmorModel.Length]; for (int i = 0; i < this.CurrentArmorTypes.Length; i++) { this.CurrentArmorTypes[i] = PlayerStats.ArmorTypes.None; this.ArmorModel[i].SetActive(false); } } if (this.CurrentArmorHP == null || this.CurrentArmorHP.Length != this.ArmorModel.Length) { this.CurrentArmorHP = new int[this.ArmorModel.Length]; } this.CaveDoors = GameObject.FindGameObjectsWithTag("CaveDoor"); }
private void Start() { this.MyClock = Scene.Clock; this.mutantControl = Scene.MutantControler; this.sceneInfo = Scene.SceneTracker; this.netAnimator = base.transform.FindChild("player_BASE").GetComponent<Animator>(); base.InvokeRepeating("checkGroundTag", 1f, 2f); if (this.debugAddToPlayerList) { Scene.SceneTracker.allPlayers.Add(base.gameObject); } }