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