Example #1
0
 public void Update(PlayBandDataCache data)
 {
     this.data.Update(data.data);
     force = data.force;
     direction.Set(data.direction.x, data.direction.y);
     angel = data.angel;
 }
Example #2
0
    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);
    }