private void OnEnable()
        {
            m_editor = (ObjectEmitter)target;
            Clear();

            AddPropertys(normalProps, "发射器名字", "launchName");
            AddPropertys(normalProps, "发射实体队列", "launchEntities");
            AddPropertys(normalProps, "发射父节点", "launchParent");
            AddPropertys(normalProps, "发射相对节点", "launchRelative");
            AddPropertys(normalProps, "发射次数", "launchTimes");
            AddPropertys(normalProps, "发射频度(s)", "launchFreq");
            AddPropertys(normalProps, "发射数量", "launchNum");
            AddPropertys(normalProps, "发射线速度", "launchMoveSpeed");
            AddPropertys(normalProps, "发射角速度", "launchAngleSpeed");
            AddPropertys(normalProps, "发射角固定", "launchFixAngle");

            m_launchOrderType = serializedObject.FindProperty("launchOrderType");

            AddPropertys(launchOrderProps, "按次数递增", "launchOrderOrderlyByTimes");
            AddPropertys(launchOrderFixProps, "实体序号", "launchOrderFixedIndex");


            m_launchType = serializedObject.FindProperty("launchType");
            AddPropertys(lineProps, "发射长度", "launchLineDistance");
            AddPropertys(lineProps, "发射角度", "launchLineAngle");
            AddPropertys(lineProps, "发射角度增量", "launchLineRPT");

            AddPropertys(sectorProps, "扇形半径", "launchSectorRadius");
            AddPropertys(sectorProps, "起始角", "launchSectorStartAngle");
            AddPropertys(sectorProps, "张角", "launchSectorSpreadAngle");

            AddPropertys(randomProps, "最小半径", "launchRandomMinRadius");
            AddPropertys(randomProps, "最大半径", "launchRandomMaxRadius");

            AddPropertys(fixedPointProps, "固定点列表", "launchFixedPointPoints");

            AddPropertys(customProps, "自定义函数", "launchCustomCallback");
        }
Exemple #2
0
 public override void DrawGizmos(ObjectEmitter emitter)
 {
 }