void Start()
 {
     thresh = GetComponentInParent<ThreshBehaviour>();
     animator = GetComponent<Animator>();
     EventManager.AddListener("OnHookDestroyed", this.gameObject);
     EventManager.AddListener("OnHookCreated", this.gameObject);
 }
 protected void Configure()
 {
     thresh = GameObject.FindObjectOfType<ThreshBehaviour> ();
     hookCord = transform.FindChild("HookLinePoint").gameObject;
     thisRigidbody = GetComponent<Rigidbody2D>();
     lineRender = GetComponent<LineRenderer> ();
     hookHand = thresh.GetHandHook();
     lineRender.SetPosition(0, hookHand.transform.position);
     lineRender.SetPosition (1, hookCord.transform.position);
 }
    void Awake()
    {
        EventManager.AddListener ("OnEnemyDestroyed", this.gameObject);

        thresh = GameObject.FindObjectOfType<ThreshBehaviour> ();

        scoreTxt = GameObject.Find ("ScoreText").GetComponent<Text>();
        if(!scoreTxt){
            Debug.LogError("Can't find the ScoreText");
        }
    }
 void Start()
 {
     thresh = GameObject.FindObjectOfType<ThreshBehaviour> ();
     scoreController = GameObject.FindObjectOfType<Score>();
 }