コード例 #1
0
ファイル: PhoneManager.cs プロジェクト: calport/Dial-A-Demon
    public void DialOut(PlotManager.PhoneCall phone = null)
    {
        targetPhoneCall = phone;
        _previousPage   = _ps.GetCurrentState();
        _ps.ChangeGameState("Phone_OnCall");
        var waitTime = 0f;

        if (phone == null)
        {
            waitTime = 15f;
        }
        else
        {
            waitTime = Random.Range(0f, 13f);
        }
        _phoneRelatedCoroutine.Add(CoroutineManager.DoDelayCertainSeconds(
                                       PhonePutThrough,
                                       waitTime));
    }