| 1234567891011121314151617181920212223242526272829303132333435363738394041 | 
							- using System.Collections;
 
- using UnityEngine;
 
- using System;
 
- namespace GFGGame
 
- {
 
-     public class MonoBhaviourProxy : MonoBehaviour
 
-     {
 
-         public Action start;
 
-         public Action update;
 
-         public Action onDestroy;
 
-         public Action onEnable;
 
-         public Action onDisable;
 
-         private void OnDestroy()
 
-         {
 
-             onDestroy?.Invoke();
 
-         }
 
-         // Use this for initialization
 
-         void Start()
 
-         {
 
-             start?.Invoke();
 
-         }
 
-         // Update is called once per frame
 
-         void Update()
 
-         {
 
-             update?.Invoke();
 
-         }
 
-         private void OnEnable()
 
-         {
 
-             onEnable?.Invoke();
 
-         }
 
-         private void OnDisable()
 
-         {
 
-             onDisable?.Invoke();
 
-         }
 
-     }
 
- }
 
 
  |