public void LoadAction_withEvent() { if (actionList != null) { int i = 0; foreach (var act in actionList) { i++; loadCtrl.AddBlackAction("ui_additinal : " + i, act); } } LoadAction(); }
private void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.tag == "Player") { var plTr = col.transform; load.AddBlackAction("Load", () => ChengeToTarget(plTr)); load.FadeAction(); StartCoroutine(SetPlayerCamera()); } }