void Awake() { if (m_Button == null) { m_Button = GetComponent <Button>(); } m_Aargument = GetComponent <EventArgument>(); m_Button.onClick.AddListener(OnClick); }
void Init() { if (m_Init) { return; } m_Init = true; if (m_Button == null) { m_Button = GetComponent <Button>(); } m_Aargument = GetComponent <EventArgument>(); m_Button.onClick.AddListener(OnClick); }
protected override void OnInit() { m_Target.onClick.AddListener(OnClick); m_Aargument = m_Target.GetComponent <EventArgument>(); }
public override bool OnReturn() { m_Aargument = default; return(base.OnReturn()); }