Guest User

Untitled

a guest
Oct 21st, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public class GrowSize : MonoBehaviour {
  2. private float scale = 1;
  3. public float speed = 0.1f;
  4.  
  5. // Use this for initialization
  6. void Start () {
  7.  
  8. }
  9.  
  10. // Update is called once per frame
  11. void Update () {
  12. transform.localScale = new Vector3 (scale, scale, 0);
  13. scale += speed;
  14.  
  15.  
  16. }
Add Comment
Please, Sign In to add comment