public void Update(PlayBandDataCache data) { this.data.Update(data.data); force = data.force; direction.Set(data.direction.x, data.direction.y); angel = data.angel; }
private bool CorrectAngleDecide(PlayBandDataCache currentCache, PlayBandDataCache prevCache) { if (currentCache.direction.x > 0) { if (currentCache.data.EulerAngles.y < prevCache.data.EulerAngles.y) { return(false); } } else { if (currentCache.data.EulerAngles.y > prevCache.data.EulerAngles.y) { return(false); } } return(true); }