public void AwakeLevel(GameManager currentGameManager) { InitializeVariables(); storm = FindObjectOfType <StormBehavior>(); newCamera = FindObjectOfType <MultipleTargetCamera>(); GetPlayersInitialLocation(); }
void Awake() { particleSystem = GetComponent <ParticleSystem>(); storm = stormPrefab.GetComponent <StormBehavior>(); ParticleSystem.ShapeModule systemShape = particleSystem.shape; systemShape.radius = storm.stormRadius * 0.5f; transform.position = storm.transform.position; }
void MakeDamage() { if (StormBehavior.IsOutsideCircle_Static(transform.position)) { if (myHitComponent) { myHitComponent.OnPlayerHit(Vector3.zero, 0, gameStorm.stormDamageValue, 0, 0, PlayerHit.HitBy.Storm); } } }
private void Awake() { myHitComponent = GetComponent <PlayerHit>(); gameStorm = FindObjectOfType <StormBehavior>(); if (gameStorm != null) { initialStormTimer = gameStorm.timerDuration; currentStormTimer = initialStormTimer; } }
private void Awake() { instance = this; stormFollower = FindObjectOfType <StormPathFollower>(); }
private void Awake() { stormInstance = FindObjectOfType <StormBehavior>(); speed = stormInstance.stormSpeed; }