[Unity] About Singleton Practice
What is a Singleton? A Singleton is a design pattern that restricts the instantiation of a class to one single instance. This is useful when
September 16, 2024
July 18, 2023
March 15, 2023
[Unity] Basic Inputs
Keyboard/Controller Inputs GetButtonDown//TBD GetAxis, GetAxisRawex) //one time press, not continuous public RectTransform myCurser;Vector3 myOffset = new Vector3(200, 0, 0);bool inUseFlag = false;void Update(){ if(Input.GetAxisRaw(“Horizontal”) != 0) {
February 8, 2023
[Unity] Basic Movements
In most cases, you first need to get either transform variable or rigidbody variable of an object. Transform.position*”transform” is a variable that refers to the
February 7, 2023