public void ET_RecordDependency() { GunSystem gunSys = transform.root.GetComponentInChildren <GunSystem>(); if (gunSys != null) { gunSys.Recoder_Gun_DependencyInfo(typeof(AK_Installer), transform.localPosition, transform.localRotation); } }