private void Start() { mUICtr = UIContller.GetInstance; transform.GetComponent<Button>().onClick.AddListener(UIButtonFunction); //UIButtonFunction(); }
private void Awake() { mBlockManager = gameObject.AddComponent<BlockManager>(); mUIContller = gameObject.AddComponent<UIContller>(); }