mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
13 lines
No EOL
371 B
C#
13 lines
No EOL
371 B
C#
using UnityEngine;
|
|
|
|
namespace Starpelly.Transformer
|
|
{
|
|
public class Scale
|
|
{
|
|
public static Vector3 Resize(Vector3 amount, Vector3 direction)
|
|
{
|
|
return new Vector3(direction.x * amount.x - 11f, direction.y * amount.y) / 2;
|
|
// transform.localScale = new Vector3(direction.x * amount.x, direction.y * amount.y);
|
|
}
|
|
}
|
|
} |