예제 #1
0
    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>();
    }
예제 #2
0
 void Awake()
 {
     lootTrigger = gameObject.GetComponentInChildren<LootTrigger>();
 }