// Use this for initialization void Start() { //impulseCooldown = 5.0f; //setImpulse = false; canHeal = false; setHealing = false; pController = GetComponentInParent <playerControllerCopy>(); if (pController == null) { Debug.Log("Could not find pController"); } popUpController = interactionPopUp.GetComponent <WorldSpaceObjectController>(); if (popUpController == null) { Debug.Log("Could not find worldspacecontroller"); } popUpController2 = interactionPopUp2.GetComponent <WorldSpaceObjectController>(); if (popUpController2 == null) { Debug.Log("Could not find worldspacecontroller"); } popUpController3 = interactionPopUp3.GetComponent <WorldSpaceObjectController>(); if (popUpController3 == null) { Debug.Log("Could not find worldspacecontroller"); } travHealingBarController = travHealingBar.GetComponent <WorldSpaceObjectController>(); if (travHealingBarController == null) { Debug.Log("Could not find travhealingbarcontroller"); } unlockAbilties(); createMonsterPopups(); createLightCountDowns(); //travSlider = Instantiate(travHealthPrefab, transform.position, Quaternion.identity); //travSlider.SetActive(false); healingSFX = GetComponent <AudioSource>(); if (healingSFX == null) { Debug.Log("Could not find the healing sound effect"); } isHealing = false; timeToHeal = .2f; currentHealTime = 0f; }
// Use this for initialization void Start() { //impulseCooldown = 5.0f; //setImpulse = false; setHealing = false; pController = GetComponentInParent <playerController>(); if (pController == null) { Debug.Log("Could not find pController"); } popUpController = interactionPopUp.GetComponent <WorldSpaceObjectController>(); if (popUpController == null) { Debug.Log("Could not find worldspacecontroller"); } }