Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The call scirpt:
- Debug.Log(inventory.testobject.transform.position.x);
- the inventory scirpt:
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class PlayerInventoryScript : MonoBehaviour
- {
- public GameObject testobject;
- private void Start()
- {
- testobject = GameObject.FindGameObjectWithTag("Primary");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement