コード例 #1
0
ファイル: Player.cs プロジェクト: ecl1ps/orbital-devastation
 public void CreateWeapons()
 {
     Hook       = new HookLauncher(SceneMgr, this);
     Mine       = new MineLauncher(SceneMgr, this);
     Cannon     = new ProximityCannon(SceneMgr, this);
     HealingKit = new HealingKit(SceneMgr, this);
 }
コード例 #2
0
 public HealAction(IHealingKit healingKit, SceneMgr mgr, Player plr) : base(mgr, plr)
 {
     this.healingKit = healingKit;
     Name            = "Repair base";
     Cost            = healingKit.Cost;
     ImageSource     = "pack://application:,,,/resources/images/icons/heal-icon.png";
     BackgroundColor = Color.FromRgb(0xED, 0xFC, 0xE5);
     Cooldown        = 1; //sekunda
 }