private void EnableBoxCollider() { StartCoroutine(MonoBehaviourExtensions.DelayMethod(1f, () => { FloorCollider.enabled = true; })); }
private void Start() { StartCoroutine(MonoBehaviourExtensions.DelayMethod(DelayWait, () => { MenuLoad = true; })); }
private void OnSceneUnload(Scene current) { //GameSceneのポーズ状態を解除 if (_Pausing != null) { _Pausing.SetResume(); } Debug.Log("きてる?"); StartCoroutine(MonoBehaviourExtensions.DelayMethod(DelayWait, () => { MenuLoad = false; })); }
private void PlayerSlippingThrough() { StartCoroutine(MonoBehaviourExtensions.DelayMethod(1f, () => { //長押し判定 if (!IsDownKey()) { return; } FloorCollider.enabled = false; EnableBoxCollider(); })); }
public void OnTriggerEnter2D(Collider2D collision) { if (!IsTagPlayer(collision.tag)) { return; } PlayerScript.ContorolMode = false; StartCoroutine(MonoBehaviourExtensions.DelayMethod(ReturnSecondes, () => { //Playerオブジェクトの移動メソッドを呼び出し //Player.transform.position = new Vector3(-8f, -1.380f, 0); PlayerScript.MovePosition(ReturnPoint); PlayerScript.ContorolMode = true; })); //Debug.Log("落下"); //Playerへダメージ処理 }