private void OnCollisionEnter2D(Collision2D col) { if (col.gameObject.tag == "Player") { var plTr = col.transform; load.AddBlackAction("Load", () => ChengeToTarget(plTr)); load.FadeAction(); StartCoroutine(SetPlayerCamera()); } }
public void LoadAction() { loadCtrl.FadeAction(); }