protected void InitializeWeapon(WeaponType weapon) { var newWeapon = WeaponList.GetWeapon(weapon).Instantiate(releasePoint); currentWeapon = newWeapon; actionCoordinator.InitializeWeapon(currentWeapon); }
protected void SwitchToWeapon(WeaponType weapon) { //Debug.Log(newWeapon.GetTakeoutBehaviour().name + " " + currentWeapon.GetStashBehaviour().name); var newWeapon = WeaponList.GetWeapon(weapon).Instantiate(releasePoint); actionCoordinator.SwitchWeapon(currentWeapon, newWeapon); currentWeapon = newWeapon; }
public BasicChopper(Texture2D texture, Vector2 position) : base(texture, position) { frontWeapon = WeaponList.GetWeapon(WeaponType.MGun); leftWeapon = WeaponList.GetWeapon(WeaponType.Rocket); rightWeapon = WeaponList.GetWeapon(WeaponType.Rocket); }