-
어디서나 불러서 사용가능.
GameObject간 변수 공유에 사용가능.
public class Gv { static public Gv global = new Gv(); public int mV1 = 0; }
생성시점 주의.
'Unity' 카테고리의 다른 글
Unity - Renderer.material 수정 (0) 2021.03.21 마우스로 Obj 튕겨 밀어내기 (0) 2021.03.21 Unity - Vector3 rotate (vector 회전) (0) 2021.03.20 Unity - Rigidbody.AddForce (0) 2021.03.20 Unity - Mouse (object event) (0) 2021.03.20 Unity - 3d object drag (0) 2021.03.20 Unity - Ray (0) 2021.03.19 Unity - Translate (0) 2021.03.18