public override void Awake() { base.Awake(); _unityModule = Owner.GetComponent <UnityModule>(); if (_unityModule == null) { Debug.LogWarning("There exist no UnityModule!"); } else { _unityModule.OnStarted += OnStarted; _unityModule.OnStopped += OnStopped; _unityModule.OnUpdated += OnUpdated; } }
public static void CopyControlReference(MenuCommand command) { clipboard = command.context as UnityModule; }