using System.Collections.Generic; using UnityEngine; // ±£´æËùÓÐ14¸ö¹Ç÷À public class RigidbodyHolder : MonoBehaviour { public Rigidbody[] allRigs; //private WeaponHandler weapons; private void Start() { allRigs = GetComponentsInChildren(); //weapons = GetComponent(); } private void Update() { } public Rigidbody[] GetAllRigs() { return allRigs; } }