Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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");
        }
Ejemplo n.º 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;
         }
     }
 }
Ejemplo n.º 4
0
 public override void Initialize(Player player)
 {
     playerHealth = player.MyHealth;
     playerHealth.HealthUpdateEvent += OnHealthUpdate;
 }
Ejemplo n.º 5
0
 public override void Initialize(Player player)
 {
     health = player.MyHealth;
     player.KillRecievedEvent += OnKillReceived;
 }
Ejemplo n.º 6
0
 public abstract void Initialize(Player player);