public void Behave()
        {
            Vector3 angleUnit = (_context.Transform.right - _context.Transform.up) / 90;

            ThrowingObjectBehavior.UseObject(-_context.Transform.up + _offsetDegree * angleUnit);
            ThrowingObjectBehavior.UseObject(((-_context.Transform.up +
                                               (_context.Transform.right - _context.Transform.up) / 2) / 2) + _offsetDegree * angleUnit);
            ThrowingObjectBehavior.UseObject(((_context.Transform.right - _context.Transform.up) / 2) +
                                             _offsetDegree * angleUnit);
        }
Пример #2
0
 public void Behave()
 {
     ThrowingObjectBehavior.UseObject(_context.Transform.right);
 }