/// <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);