Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1.  
  2. The call scirpt:
  3. Debug.Log(inventory.testobject.transform.position.x);
  4.  
  5.  
  6. the inventory scirpt:
  7. using System.Collections;
  8. using System.Collections.Generic;
  9. using UnityEngine;
  10.  
  11. public class PlayerInventoryScript : MonoBehaviour
  12. {
  13.  
  14.  
  15. public GameObject testobject;
  16.  
  17. private void Start()
  18. {
  19.  
  20. testobject = GameObject.FindGameObjectWithTag("Primary");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement