Advertisement
Caminhoneiro

StateMachineOrderExample

Aug 22nd, 2017
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3. public class First : MonoBehaviour
  4. {
  5. void Awake()
  6. {
  7. Debug.Log("First Awake");
  8. }
  9. void OnEnable()
  10. {
  11. Debug.Log("First OnEnable");
  12. }
  13. void Start ()
  14. {
  15. Debug.Log("First Start");
  16. }
  17. void FixedUpdate ()
  18. {
  19. Debug.Log("First FixedUpdate");
  20. }
  21. void Update ()
  22. {
  23. Debug.Log("First Update");
  24. }
  25. void LateUpdate ()
  26. {
  27. Debug.Log("First LateUpdate");
  28. //Destroy(this);
  29. }
  30. void OnDisable()
  31. {
  32. Debug.Log("First OnDisable");
  33. }
  34. void OnDestroy()
  35. {
  36. Debug.Log("First OnDestroy");
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement