void Awake() { TreD = Player.GetComponent <SpelarentreD>(); rigid = Item.GetComponent <Rigidbody>(); ItemPlacer = Player.gameObject.transform.Find("LayDownItem"); ItemPlacerGameObject = ItemPlacer.gameObject; }
// Start is called before the first frame update void Awake() { Renderer = GetComponent <MeshRenderer>(); originalMaterial = Renderer.material; playerStateHandler = player.GetComponent <PlayerStateHandler>(); TreD = player.GetComponent <SpelarentreD>(); }