Skip to content

Instantly share code, notes, and snippets.

@daleth90

daleth90/Hero.cs Secret

Created Jul 13, 2017
Embed
What would you like to do?
hero example 3
public class Hero {
private Weapon weapon;
public Hero() {
// WeaponID for the constructor
weapon = new Weapon( 1 );
}
public void Fire() {
weapon.Fire();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment