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); }
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); }
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); }
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); }
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); }