Advertisement
Guest User

Untitled

a guest
May 25th, 2018
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. void SeedGrowing()
  2. {
  3. while (SeedLife <= 100)
  4. {
  5. SeedLife++;
  6. }
  7. if (SeedLife >= 100)
  8. {
  9. oldPosition = transform.position;
  10. oldRotation = transform.rotation;
  11. Debug.Log ("Launching seed to tree");
  12. StartCoroutine(ChangeSeedToTree ());
  13. }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement