public void StartChasePlayer() { player = GetComponent <Player>(); muzzle = player.gameObject; muzzle_Type = Resources.Load("ScriptableObject/MuzzleTypeList") as MuzzleType; modeList = Resources.Load("ModeList/mode") as ModeList; muzzleRadius = muzzle_Type.muzzTypeList[mode].GetComponent <SphereCollider>().radius; range = modeList.param[0].Range; magazine = modeList.param[0].Bullet; }
static void CreateMuzzleTypeInstance() { MuzzleType muzzleType = CreateInstance <MuzzleType>(); #if UNITY_EDITOR string path = AssetDatabase.GenerateUniqueAssetPath("Assets/Resources/ScriptableObject/MuzzleTypeList.asset"); AssetDatabase.CreateAsset(muzzleType, path); AssetDatabase.Refresh(); #endif }
public Boxer(string Name, bool LongTail, BarkPitchType barkPitch, MuzzleType muzzle, bool ExtremeSenseOfSmell) { }