예제 #1
0
 public void AwakeLevel(GameManager currentGameManager)
 {
     InitializeVariables();
     storm     = FindObjectOfType <StormBehavior>();
     newCamera = FindObjectOfType <MultipleTargetCamera>();
     GetPlayersInitialLocation();
 }
예제 #2
0
 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;
 }
예제 #3
0
 void MakeDamage()
 {
     if (StormBehavior.IsOutsideCircle_Static(transform.position))
     {
         if (myHitComponent)
         {
             myHitComponent.OnPlayerHit(Vector3.zero, 0, gameStorm.stormDamageValue, 0, 0, PlayerHit.HitBy.Storm);
         }
     }
 }
예제 #4
0
 private void Awake()
 {
     myHitComponent = GetComponent <PlayerHit>();
     gameStorm      = FindObjectOfType <StormBehavior>();
     if (gameStorm != null)
     {
         initialStormTimer = gameStorm.timerDuration;
         currentStormTimer = initialStormTimer;
     }
 }
예제 #5
0
    private void Awake()
    {
        instance = this;

        stormFollower = FindObjectOfType <StormPathFollower>();
    }
예제 #6
0
 private void Awake()
 {
     stormInstance = FindObjectOfType <StormBehavior>();
     speed         = stormInstance.stormSpeed;
 }