목록2023/09/21 (1)
Machineboy空
상속: virtual , override
//부모 Scripts public class E_Grabbable : MonoBehaviour { E_Grabber hand; Rigidbody rb; // Start is called before the first frame update public virtual void Start() { rb = GetComponent(); } public virtual void Update() { if (hand != null) { transform.position = hand.transform.position; transform.rotation = hand.transform.rotation; } } public virtual void DoAction() { } } //자식 Scripts public class ..
Computer/개념
2023. 9. 21. 13:40