Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class TESTYOURASS : MonoBehaviour {
  5.  
  6. void Start() {
  7. SampleVec vec = new SampleVec();
  8. Debug.Log(vec.vector);
  9.  
  10. Vector3 v = vec.Alter();
  11. v.Set(5f, 5f, 5f);
  12.  
  13. Debug.Log(vec.vector);
  14. }
  15.  
  16. public class SampleVec {
  17. public Vector3 vector;
  18.  
  19. public SampleVec() {
  20. vector = new Vector3(100f, 100f, 100f);
  21. }
  22.  
  23. public Vector3 Alter() {
  24. return vector;
  25. }
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement