void Start() { GameObject go_Cloud; go_Cloud = (GameObject)Instantiate (lt_CloudObj[0], Camera.main.ScreenToWorldPoint(new Vector3(Screen.width, 330f, 20f)), Quaternion.identity); MPI_LMScript = GameObject.Find ("MPI_Level_Manager").GetComponent<MPI_Level_Manager>(); fl_SpawnCooldown = 2.5f + Time.realtimeSinceStartup; }
void Start() { MPI_LMScript = GameObject.Find ("MPI_Level_Manager").GetComponent<MPI_Level_Manager>(); ps_Volcano = GetComponentInChildren<ParticleSystem>(); fl_EruptionCooldown = fl_EruptionDelay + Time.realtimeSinceStartup; AttackStages (MPI_LMScript.st_Difficulty); }
void Start() { go_Water = GameObject.Find ("GO_Water"); MPI_LMScript = GameObject.Find ("MPI_Level_Manager").GetComponent<MPI_Level_Manager>(); KrakenScript = GameObject.FindGameObjectWithTag ("Kraken").GetComponent<TL_KrakenScript>(); Water_Particles = GetComponentInChildren<ParticleSystem>(); Water_Particles.GetComponent<ParticleSystem>().Play(); fl_AttackCooldown = 2f + Time.realtimeSinceStartup; }
void TentacleStages(MPI_Level_Manager.DifficultyLevel dl_States) { switch(dl_States) { case MPI_Level_Manager.DifficultyLevel.Medium: if(fl_StageCooldown < Time.realtimeSinceStartup) { bl_Activate = !bl_Activate; if(lt_Tentacles[0].gameObject != null) { TentacleScript = lt_Tentacles[0].GetComponent<TL_TentacleThrust>(); TentacleScript.enabled = bl_Activate; } if(lt_Tentacles[2].gameObject != null) { TentacleScript = lt_Tentacles[2].GetComponent<TL_TentacleThrust>(); TentacleScript.enabled = bl_Activate; } fl_StageCooldown = 1.5f + Time.realtimeSinceStartup; } break; case MPI_Level_Manager.DifficultyLevel.Hard: if(fl_StageCooldown < Time.realtimeSinceStartup) { bl_Activate = !bl_Activate; if(lt_Tentacles[0].gameObject != null) { TentacleScript = lt_Tentacles[0].GetComponent<TL_TentacleThrust>(); TentacleScript.enabled = !bl_Activate; } if(lt_Tentacles[1].gameObject != null) { TentacleScript = lt_Tentacles[1].GetComponent<TL_TentacleThrust>(); TentacleScript.enabled = bl_Activate; } if(lt_Tentacles[2].gameObject != null) { TentacleScript = lt_Tentacles[2].GetComponent<TL_TentacleThrust>(); TentacleScript.enabled = bl_Activate; } fl_StageCooldown = 1.5f + Time.realtimeSinceStartup; } break; } }
void AttackStages(MPI_Level_Manager.DifficultyLevel dl_Level) { switch (dl_Level) { case MPI_Level_Manager.DifficultyLevel.Easy: fl_LavaRockInterval = 1.3f; break; case MPI_Level_Manager.DifficultyLevel.Medium: fl_LavaRockInterval = 1f; break; case MPI_Level_Manager.DifficultyLevel.Hard: fl_LavaRockInterval = 0.75f; break; } }
void Start() { go_Water = GameObject.Find ("GO_Water"); MPI_LMScript = GameObject.Find ("MPI_Level_Manager").GetComponent<MPI_Level_Manager>(); TentacleSpawn(); }
void Start() { MPI_LMScript = GameObject.Find ("MPI_Level_Manager").GetComponent<MPI_Level_Manager>(); ps_Lightning = transform.FindChild("pf_Lightning").GetComponent<ParticleSystem>(); ps_Lightning02 = transform.FindChild("pf_Lightning02").GetComponent<ParticleSystem>(); BoatScript = GameObject.Find("GO_Boat").GetComponent<MPI_BoatNew>(); fl_LightningCooldown = fl_LightningDelay + Time.realtimeSinceStartup; }
void Start() { MPI_LMScript = GameObject.Find ("MPI_Level_Manager").GetComponent<MPI_Level_Manager>(); go_Boat = GameObject.Find("GO_Boat"); }
void Start() { LMScript = GameObject.Find ("MPI_Level_Manager").GetComponent<MPI_Level_Manager>(); go_Water = GameObject.Find ("GO_Water"); RecreatePlane(); }