Advertisement
Guest User

dmgtxt

a guest
Jan 4th, 2022
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.36 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Testing : MonoBehaviour
  6. {
  7.     [SerializeField] private Transform pfdmgtext;
  8.  
  9.     void Start()
  10.     {
  11.         Instantiate(pfdmgtext, transform.position, Quaternion.identity);
  12.         pfdmgtext.SetParent(FindObjectOfType<GameManager>().transform);
  13.        
  14.     }
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement