예제 #1
0
 /// <summary>
 /// Initialize all augmentations.
 /// </summary>
 /// <param name="player">Player to pass to each augmentation.</param>
 public void Initialize(Player player)
 {
     foreach (Augmentation augmentation in augmentations.Where(augmentation => augmentation != null))
     {
         augmentation.Initialize(player);
     }
 }
예제 #2
0
        public override void Initialize(Player player)
        {
            ship = player;
            player.BarrelRollEvent += OnBarrelRoll;

            myGameObject = gameObject;
            myCollider = collider;
            shipLayer = LayerMask.NameToLayer("PlayerShip");
            weaponLayer = LayerMask.NameToLayer("PlayerWeapon");
        }
예제 #3
0
 public override void Initialize(Player player)
 {
     for (int i = 0; i < player.Weapons.weapons.Length; i++)
     {
         if (player.Weapons.weapons[i] != null)
         {
             player.Weapons.weapons[i].cooldownSpeed *= cooldownBoost;
         }
     }
 }
예제 #4
0
 public override void Initialize(Player player)
 {
     playerHealth = player.MyHealth;
     playerHealth.HealthUpdateEvent += OnHealthUpdate;
 }
예제 #5
0
 public override void Initialize(Player player)
 {
     health = player.MyHealth;
     player.KillRecievedEvent += OnKillReceived;
 }
예제 #6
0
 public abstract void Initialize(Player player);