private void Awake() { Me = this; levelMan = this.GetComponent <LevelMan>(); AdsMan.Me.DestroyBanner(); ui.CanvasScaler(); ui.StartPosition(); }
/// <summary> /// Get Player Detail like Player Health, Player Movement and Player Shoot to disable when /// Game is over /// </summary> void Awake() { Player = GameObject.Find("Police"); //Find Police GameObj PoliceHealth = Player.GetComponent<PlayerHealth>(); //Get PlayerHealth Script from Police playerMovement = Player.GetComponent<PlayerMovement>(); //Get PlayerMovement playerShooting = Player.GetComponentInChildren <PlayerShooting>(); //Get the Playershooting from GunBarrel i.e child of player PlayerAnimator = Player.GetComponent<Animator>(); //Get the animator component from player LevelManager = GameObject.Find("LevelManager").GetComponent<LevelMan>(); //Get the LevelMan Script from LevelManager GameObj ZombieFinder = GameObject.FindGameObjectsWithTag("ZombieTag"); //Find all the Alive zombie HealthSlider = HUD.GetComponentInChildren<Slider>(); //Get the Health Slider from HealthBar Canvas HeartImage = GameObject.Find ("HeartImage").GetComponent<Image>(); // Get the Image from HeartImage UI //Get the Sprite Image from LifeImage Array SecondLife = LifeImage[0]; ThirdLife = LifeImage[1]; ForthLife = LifeImage[2]; MissionOver = GameObject.Find ("DayComplete").GetComponent<Image>(); //Get DayComplete Gameobj MissionOver.color = Color.clear; //Set Image transparent }
public BonusHandler(LevelMan lvlman) { levelMan = lvlman; }
public Factory(LevelMan _levelGenerator, GameWeights _gameWeights) { this.gameWeights = _gameWeights; this.levelGenerator = _levelGenerator; }
public EnemyFactory(LevelMan _levelGenerator, GameWeights _gameWeights) : base(_levelGenerator, _gameWeights) { cHorda = new List <Enemy>(); cPulptines = new List <Protestante>(); }