Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class TESTYOURASS : MonoBehaviour {
- void Start() {
- SampleVec vec = new SampleVec();
- Debug.Log(vec.vector);
- Vector3 v = vec.Alter();
- v.Set(5f, 5f, 5f);
- Debug.Log(vec.vector);
- }
- public class SampleVec {
- public Vector3 vector;
- public SampleVec() {
- vector = new Vector3(100f, 100f, 100f);
- }
- public Vector3 Alter() {
- return vector;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement