void Awake() { defaultShader = Shader.Find("Diffuse"); highlight = Shader.Find("Self-Illumin/Bumped Diffuse"); uiController = GameObject.FindWithTag("UI Controller").GetComponent<UIController>(); lootTrigger = transform.parent.GetComponentInChildren<LootTrigger>(); }
void Awake() { lootTrigger = gameObject.GetComponentInChildren<LootTrigger>(); }