예제 #1
0
 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;
 }
예제 #2
0
    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
    }
예제 #3
0
 public Boxer(string Name, bool LongTail, BarkPitchType barkPitch, MuzzleType muzzle, bool ExtremeSenseOfSmell)
 {
 }