コード例 #1
0
    void Update()
    {
        if (playerEnterExit == true)
        {
            timer -= Time.deltaTime;
        }
        if (playerEnterExit == false)
        {
            timer = 2;
        }
//////Timer at 0//////
        if (timer <= 0)
        {
            player.reset();
            reset();
        }
    }