public void TransitionCurrentEncounterIn(UnityAction callback = null) { // FX placement var pos = myRT.TransformPoint(myRT.position.x, myRT.position.y, 0); var go = FX_Placement.fx_lookup.ContainsKey(GlobalStrings.SMOKE_EFFECT_2) ? FX_Placement.fx_lookup[GlobalStrings.SMOKE_EFFECT_1] : null; StartCoroutine(FX_Placement.FxHereAndFire(new Vector3(pos.x, pos.y, -2), go)); // load enemy data TweenCGAlpha.Tween(currentEncounter.gameObject, 1.0f, 0, 1, TweenMain.Style.Once, TweenMain.Method.EaseIn, callback); }
public void TransitionCurrentEncounterOut(UnityAction callback = null) { var pos = myRT.TransformPoint(myRT.position.x, myRT.position.y, 0); var go = FX_Placement.fx_lookup.ContainsKey(GlobalStrings.SMOKE_EFFECT_1) ? FX_Placement.fx_lookup[GlobalStrings.SMOKE_EFFECT_1] : null; StartCoroutine(FX_Placement.FxHereAndFire(new Vector3(pos.x, pos.y, -2), go)); // load enemy data TweenCGAlpha.Tween(currentEncounter.gameObject, 1.0f, 1, 0, TweenMain.Style.Once, TweenMain.Method.EaseOut, callback); //GameplayController.RaiseGameplayEvent("Initial Encounter", PF_GamePlay.GameplayEventTypes.IntroEncounter); }