Advertisement
11eimilia11

LUVA LIVRE CARAIO PORRA AAAAA

Nov 11th, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Distance : MonoBehaviour
  6. {
  7.     public GameObject ImageOat;
  8.     public GameObject ImageMaisena;
  9.     public float dist;
  10.  
  11.     // Start is called before the first frame update
  12.     void Start()
  13.     {
  14.        
  15.     }
  16.  
  17.     // Update is called once per frame
  18.     void Update()
  19.     {
  20.         dist = Vector3.Distance(ImageOat.transform.position, ImageMaisena.transform.position);
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement