Exemple #1
0
 /// <summary>
 /// Converts 0-1 Colour values to percentage equivalents.
 /// </summary>
 /// <param name="_col"></param>
 /// <returns></returns>
 public static Vector3 ColourToPercentage(Color _col)
 {
     return(BaneMath.MultiplyVector3(ColourToVector3(_col), 100));
 }
Exemple #2
0
 /// <summary>
 /// Multiplies the scale of the object provided in World Space.
 /// </summary>
 /// <param name="_object"></param>
 /// <param name="_parent"></param>
 /// <param name="_scale"></param>
 public static void SetWorldScale(Transform _object, Transform _parent, float _scale)
 {
     _object.SetParent(null);
     _object.localScale = BaneMath.MultiplyVector3(_object.localScale, _scale);
     _object.SetParent(_parent);
 }