コード例 #1
0
    private void Awake()
    {
        Me       = this;
        levelMan = this.GetComponent <LevelMan>();
        AdsMan.Me.DestroyBanner();

        ui.CanvasScaler();
        ui.StartPosition();
    }
コード例 #2
0
ファイル: PlayerManager.cs プロジェクト: dunkelblume/DND
    /// <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
    }
コード例 #3
0
ファイル: BonusHandler.cs プロジェクト: Shahdee/xc_arkanoid
 public BonusHandler(LevelMan lvlman)
 {
     levelMan = lvlman;
 }
コード例 #4
0
ファイル: Factory.cs プロジェクト: probhe31/Tubino2D
 public Factory(LevelMan _levelGenerator, GameWeights _gameWeights)
 {
     this.gameWeights    = _gameWeights;
     this.levelGenerator = _levelGenerator;
 }
コード例 #5
0
 public EnemyFactory(LevelMan _levelGenerator, GameWeights _gameWeights) : base(_levelGenerator, _gameWeights)
 {
     cHorda     = new List <Enemy>();
     cPulptines = new List <Protestante>();
 }