Advertisement
napland

SetValueOnStart.cs

Sep 13th, 2016
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.19 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEngine.Events;
  3.  
  4. public class SetValueOnStart : MonoBehaviour
  5. {
  6.     public UnityEvent onStart;
  7.     void Start()
  8.     {
  9.         if (onStart != null)
  10.             onStart.Invoke();
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement