Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     if (!m_buffer)
     {
         m_buffer = transform.GetComponent<ExistenceBuffer>();
     }
 }
 // Use this for initialization
 void Start()
 {
     if (m_buffer == null)
     {
         ExistenceBuffer buffer = transform.GetComponent<ExistenceBuffer>();
         m_buffer = buffer;
     }
 }
 public void cloneData(ExistenceBuffer p_other)
 {
     m_cloned = true;
     m_startTime = p_other.m_startTime;
     m_endTime = GlobalTime.getTime();
     m_buffer = new List<TimeState>(p_other.m_buffer.ToArray());
     float rest=0.0f;
     int newLast=System.Math.Max(0,getBufferPosFromTime(m_endTime, out rest));
     m_buffer.RemoveRange(newLast, m_buffer.Count - newLast);
     m_currentDeltaTime = p_other.m_currentDeltaTime;
 }