示例#1
0
 private void EnableBoxCollider()
 {
     StartCoroutine(MonoBehaviourExtensions.DelayMethod(1f, () =>
     {
         FloorCollider.enabled = true;
     }));
 }
示例#2
0
 private void Start()
 {
     StartCoroutine(MonoBehaviourExtensions.DelayMethod(DelayWait, () =>
     {
         MenuLoad = true;
     }));
 }
示例#3
0
    private void OnSceneUnload(Scene current)
    {
        //GameSceneのポーズ状態を解除
        if (_Pausing != null)
        {
            _Pausing.SetResume();
        }

        Debug.Log("きてる?");
        StartCoroutine(MonoBehaviourExtensions.DelayMethod(DelayWait, () =>
        {
            MenuLoad = false;
        }));
    }
示例#4
0
    private void PlayerSlippingThrough()
    {
        StartCoroutine(MonoBehaviourExtensions.DelayMethod(1f, () =>
        {
            //長押し判定
            if (!IsDownKey())
            {
                return;
            }

            FloorCollider.enabled = false;

            EnableBoxCollider();
        }));
    }
示例#5
0
    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へダメージ処理
    }