Ejemplo n.º 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;
 }
Ejemplo n.º 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
    }
Ejemplo n.º 3
0
 public Boxer(string Name, bool LongTail, BarkPitchType barkPitch, MuzzleType muzzle, bool ExtremeSenseOfSmell)
 {
 }