Beispiel #1
0
    public static MinibossPrototype GetMinibossPrototype(MinibossType id)
    {
        ValidateDatabase();

        foreach (MinibossPrototype miniboss in mMinibossDatabase)
        {
            if (miniboss.minibossType == id)
            {
                return(ScriptableObject.Instantiate(miniboss) as MinibossPrototype);
            }
        }
        return(null);
    }
 public override void Load(BinaryReader reader)
 {
     base.Load(reader);
     type = (MinibossType)reader.ReadByte();
 }
 public MinibossData(int x, int y, MinibossType t) : base(x, y)
 {
     type       = t;
     EntityType = EntityType.Miniboss;
 }