How to change the scale values of object by using Lerp. from 0 to 0.01722f and reveals later ?
public Vector3 vp1;
public bool checkers;
void Start()
{
checkers = false;
vp1 = gameObject.transform.localScale; // (0.01722F,0.01722F,0.01722F)
}
void Update()
{
if (checkers == true)
{
vp1 = Vector3.Lerp(new Vector3(0, 0, 0), vp1, 0.2f);
}
else
{
vp1 = Vector3.Lerp(vp1, new Vector3(0, 0, 0), 0.2f);
}
}