コード例 #1
0
    private IEnumerator CreateApplyWeakenedEffectCoroutine(Vector3 location, Action action, int sortingOrderBonus, float scaleModifier)
    {
        GameObject hn       = Instantiate(toonApplyWeakened, location, toonApplyWeakened.transform.rotation);
        ToonEffect teScript = hn.GetComponent <ToonEffect>();

        teScript.InitializeSetup(sortingOrderBonus, scaleModifier);
        action.actionResolved = true;
        yield return(null);
    }
コード例 #2
0
    private IEnumerator CreateLightningNovaCoroutine(Vector3 location, Action action, int sortingOrderBonus, float scaleModifier)
    {
        GameObject lightningNova = Instantiate(toonLightningNova, location, toonLightningNova.transform.rotation);
        ToonEffect teScript      = lightningNova.GetComponent <ToonEffect>();

        teScript.InitializeSetup(sortingOrderBonus, scaleModifier);
        action.actionResolved = true;
        yield return(null);
    }
コード例 #3
0
    private IEnumerator CreateCamoflageBuffEffectCoroutine(Vector3 location, Action action, int sortingOrder, float scaleModifier)
    {
        GameObject hn       = Instantiate(toonGainCamoflagePrefab, location, toonGainCamoflagePrefab.transform.rotation);
        ToonEffect teScript = hn.GetComponent <ToonEffect>();

        teScript.InitializeSetup(sortingOrder, scaleModifier);
        action.actionResolved = true;
        yield return(null);
    }
コード例 #4
0
    private IEnumerator CreateSmallLightningExplosionCoroutine(Vector3 location, Action action, int sortingOrder, float scaleModifier)
    {
        GameObject hn       = Instantiate(smallLightningExplosion, location, smallLightningExplosion.transform.rotation);
        ToonEffect teScript = hn.GetComponent <ToonEffect>();

        teScript.InitializeSetup(sortingOrder, scaleModifier);
        action.actionResolved = true;
        yield return(null);
    }
コード例 #5
0
    private IEnumerator CreateHardLandingEffectCoroutine(Vector3 location, Action action, int sortingOrderBonus, float scaleModifier)
    {
        Vector3 offsetLocation = new Vector3(location.x, location.y - 0.2f, location.z);

        GameObject hn       = Instantiate(hardLandingEffect, offsetLocation, hardLandingEffect.transform.rotation);
        ToonEffect teScript = hn.GetComponent <ToonEffect>();

        teScript.InitializeSetup(sortingOrderBonus, scaleModifier);
        action.actionResolved = true;
        yield return(null);
    }