Esempio n. 1
0
    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));
    }