Пример #1
0
    static public void ProvokeFail(FailCondition failCondition, GameObject source)
    {
        if (s_singleton.m_failed)
        {
            return;
        }

        s_singleton.StartCoroutine(s_singleton.FailCoroutine(failCondition));

        if (failCondition.failureIncludesExplosion)
        {
            MeshExplosion meshExplosion = source.GetComponent <MeshExplosion>();
            if (meshExplosion)
            {
                meshExplosion.Explode(source.transform.position);
            }
        }
    }