protected override void Start() { base.Start(); Speed = 5; hitPoints = 1; unitSide = UnitSide.usEnemy; DamageSource.AddToGameObject <DS_Ship> (this.gameObject, this.hitPoints, UnitSide.usPlayer); this.gameObject.AddComponent <TrajectoryLinear> ().Initialize(new Vector2(0.05f, 0), 0.05f); this.gameObject.AddComponent <TrajectoryCircle> ().Initialize(new Vector2(1, 1), 2); }
protected override void Start() { base.Start(); this.gameObject.AddComponent <BuffWielder> (); DamageSource.AddToGameObject <DS_Ship> (this.gameObject, this.hitPoints, UnitSide.usEnemy); Speed = 5; hitPoints = 5; unitSide = UnitSide.usPlayer; buttonActions = new Dictionary <string, SwitchAction> (); buttonActions.Add("Fire", SetShooting); buttonActions.Add("Accelerate", SetBuff <Buffs.Madness>); }
protected override void AddComponentsToBullet(GameObject bullet) { base.AddComponentsToBullet(bullet); DamageSource.AddToGameObject <DS_Bullet> (bullet, this.damage, UnitSide.usPlayer); }
protected override void AddComponentsToBullet(GameObject bullet) { base.AddComponentsToBullet(bullet); DamageSource.AddToGameObject <DS_Bullet> (bullet, this.damage, UnitSide.usEnemy); PlaySound.BulletShot(); }