Skip to content

Commit

Permalink
- removed obsolete delegate (no longer provided by ModComponentWrapper)
Browse files Browse the repository at this point in the history
- replaced reference to GameObject with reference to ModComponent (will be provided by ModComponentWrapper)
  • Loading branch information
WulfMarius committed Aug 21, 2017
1 parent 4a1713d commit a3aa9de
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Binoculars/Implementation.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
using UnityEngine;

using ModComponentAPI;
using ModComponentMapper;

namespace Binoculars
{
public class Implementation
{
public GameObject GameObject;
public ModComponent ModComponent;
private GameObject equippedModel;

private float originalFOV;
Expand All @@ -20,11 +21,6 @@ public void OnEquipped()
ShowButtonPopups();
}

public void OnUse()
{
GameManager.GetPlayerManagerComponent().EquipItem(this.GameObject.GetComponent<GearItem>(), false);
}

public void OnUnequipped()
{
EndZoom();
Expand Down

0 comments on commit a3aa9de

Please sign in to comment.