public void FollowTreasure(Pirate_Treasure treasure) { if(treasureToFollow == null){ treasureToFollow = treasure; handAIState = HandAIState.FOLLOWING; } }
public void UnselectTreasure() { GetComponent<UITexture>().mainTexture = unselectHandTexture; GetComponent<UITexture>().enabled = false; handAIState = HandAIState.NONE; reachedDestination = false; treasureToFollow = null; }