コード例 #1
0
 protected override void Init()
 {
     if (EmissionModuleUI.s_Texts == null)
     {
         EmissionModuleUI.s_Texts = new EmissionModuleUI.Texts();
     }
     if (this.m_BurstCount != null)
     {
         return;
     }
     this.m_Type                     = base.GetProperty("m_Type");
     this.m_Rate                     = new SerializedMinMaxCurve(this, EmissionModuleUI.s_Texts.rate, "rate");
     this.m_BurstTime[0]             = base.GetProperty("time0");
     this.m_BurstTime[1]             = base.GetProperty("time1");
     this.m_BurstTime[2]             = base.GetProperty("time2");
     this.m_BurstTime[3]             = base.GetProperty("time3");
     this.m_BurstParticleMinCount[0] = base.GetProperty("cnt0");
     this.m_BurstParticleMinCount[1] = base.GetProperty("cnt1");
     this.m_BurstParticleMinCount[2] = base.GetProperty("cnt2");
     this.m_BurstParticleMinCount[3] = base.GetProperty("cnt3");
     this.m_BurstParticleMaxCount[0] = base.GetProperty("cntmax0");
     this.m_BurstParticleMaxCount[1] = base.GetProperty("cntmax1");
     this.m_BurstParticleMaxCount[2] = base.GetProperty("cntmax2");
     this.m_BurstParticleMaxCount[3] = base.GetProperty("cntmax3");
     this.m_BurstCount               = base.GetProperty("m_BurstCount");
 }
コード例 #2
0
 protected override void Init()
 {
     if (EmissionModuleUI.s_Texts == null)
     {
         EmissionModuleUI.s_Texts = new EmissionModuleUI.Texts();
     }
     if (this.m_BurstCount == null)
     {
         this.m_Time = new SerializedMinMaxCurve(this, EmissionModuleUI.s_Texts.rateOverTime, "rateOverTime");
         this.m_Time.m_AllowRandom       = false;
         this.m_Distance                 = new SerializedMinMaxCurve(this, EmissionModuleUI.s_Texts.rateOverDistance, "rateOverDistance");
         this.m_Distance.m_AllowRandom   = false;
         this.m_BurstTime[0]             = base.GetProperty("time0");
         this.m_BurstTime[1]             = base.GetProperty("time1");
         this.m_BurstTime[2]             = base.GetProperty("time2");
         this.m_BurstTime[3]             = base.GetProperty("time3");
         this.m_BurstParticleMinCount[0] = base.GetProperty("cnt0");
         this.m_BurstParticleMinCount[1] = base.GetProperty("cnt1");
         this.m_BurstParticleMinCount[2] = base.GetProperty("cnt2");
         this.m_BurstParticleMinCount[3] = base.GetProperty("cnt3");
         this.m_BurstParticleMaxCount[0] = base.GetProperty("cntmax0");
         this.m_BurstParticleMaxCount[1] = base.GetProperty("cntmax1");
         this.m_BurstParticleMaxCount[2] = base.GetProperty("cntmax2");
         this.m_BurstParticleMaxCount[3] = base.GetProperty("cntmax3");
         this.m_BurstCount               = base.GetProperty("m_BurstCount");
     }
 }
コード例 #3
0
 protected override void Init()
 {
     if (EmissionModuleUI.s_Texts == null)
     {
         EmissionModuleUI.s_Texts = new EmissionModuleUI.Texts();
     }
     if (this.m_BurstCount == null)
     {
         this.m_Time       = new SerializedMinMaxCurve(this, EmissionModuleUI.s_Texts.rateOverTime, "rateOverTime");
         this.m_Distance   = new SerializedMinMaxCurve(this, EmissionModuleUI.s_Texts.rateOverDistance, "rateOverDistance");
         this.m_BurstCount = base.GetProperty("m_BurstCount");
         this.m_Bursts     = base.GetProperty("m_Bursts");
         this.m_BurstList  = new ReorderableList(base.serializedObject, this.m_Bursts, true, true, true, true);
         this.m_BurstList.elementHeight       = 16f;
         this.m_BurstList.onAddCallback       = new ReorderableList.AddCallbackDelegate(this.OnBurstListAddCallback);
         this.m_BurstList.onRemoveCallback    = new ReorderableList.RemoveCallbackDelegate(this.OnBurstListRemoveCallback);
         this.m_BurstList.drawHeaderCallback  = new ReorderableList.HeaderCallbackDelegate(this.DrawBurstListHeaderCallback);
         this.m_BurstList.drawElementCallback = new ReorderableList.ElementCallbackDelegate(this.DrawBurstListElementCallback);
     }
 }
コード例 #4
0
 protected override void Init()
 {
   if (EmissionModuleUI.s_Texts == null)
     EmissionModuleUI.s_Texts = new EmissionModuleUI.Texts();
   if (this.m_BurstCount != null)
     return;
   this.m_Type = this.GetProperty("m_Type");
   this.m_Rate = new SerializedMinMaxCurve((ModuleUI) this, EmissionModuleUI.s_Texts.rate, "rate");
   this.m_BurstTime[0] = this.GetProperty("time0");
   this.m_BurstTime[1] = this.GetProperty("time1");
   this.m_BurstTime[2] = this.GetProperty("time2");
   this.m_BurstTime[3] = this.GetProperty("time3");
   this.m_BurstParticleMinCount[0] = this.GetProperty("cnt0");
   this.m_BurstParticleMinCount[1] = this.GetProperty("cnt1");
   this.m_BurstParticleMinCount[2] = this.GetProperty("cnt2");
   this.m_BurstParticleMinCount[3] = this.GetProperty("cnt3");
   this.m_BurstParticleMaxCount[0] = this.GetProperty("cntmax0");
   this.m_BurstParticleMaxCount[1] = this.GetProperty("cntmax1");
   this.m_BurstParticleMaxCount[2] = this.GetProperty("cntmax2");
   this.m_BurstParticleMaxCount[3] = this.GetProperty("cntmax3");
   this.m_BurstCount = this.GetProperty("m_BurstCount");
 }
コード例 #5
0
		protected override void Init()
		{
			if (EmissionModuleUI.s_Texts == null)
			{
				EmissionModuleUI.s_Texts = new EmissionModuleUI.Texts();
			}
			if (this.m_BurstCount != null)
			{
				return;
			}
			this.m_Type = base.GetProperty("m_Type");
			this.m_Rate = new SerializedMinMaxCurve(this, EmissionModuleUI.s_Texts.rate, "rate");
			this.m_Rate.m_AllowRandom = false;
			this.m_BurstTime[0] = base.GetProperty("time0");
			this.m_BurstTime[1] = base.GetProperty("time1");
			this.m_BurstTime[2] = base.GetProperty("time2");
			this.m_BurstTime[3] = base.GetProperty("time3");
			this.m_BurstParticleCount[0] = base.GetProperty("cnt0");
			this.m_BurstParticleCount[1] = base.GetProperty("cnt1");
			this.m_BurstParticleCount[2] = base.GetProperty("cnt2");
			this.m_BurstParticleCount[3] = base.GetProperty("cnt3");
			this.m_BurstCount = base.GetProperty("m_BurstCount");
		}