wangguan
2020-12-12 938aa4da26e0109e16ded70d13a43c187498b901
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using TowerDefense.Agents.Data;
using TowerDefense.Nodes;
using UnityEngine;
 
namespace TowerDefense.Level
{
    /// <summary>
    /// Serializable class for specifying properties of spawning an agent
    /// </summary>
    [Serializable]
    public class SpawnInstruction
    {
        /// <summary>
        /// The agent to spawn - i.e. the monster for the wave
        /// </summary>
        public AgentConfiguration agentConfiguration;
 
        /// <summary>
        /// The delay from the previous spawn until when this agent is spawned
        /// </summary>
        [Tooltip("The delay from the previous spawn until when this agent is spawned")]
        public float delayToSpawn;
 
        /// <summary>
        /// 刷新怪物的HP.
        /// </summary>
        public float hp;
        /// <summary>
        /// 刷新怪物的速度.
        /// </summary>
        public float speed;
    
        /// <summary>
        /// 刷新怪物的掉落.
        /// </summary>
        public float gold;
 
    }
}