Versions with this page:
Versions without this page:
Acceda al componente x o y utilizando [0] o [1] respectivamente.
x
y
using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { public Vector2 p; void Example() { p[1] = 5; } }