void OnTriggerEnter(Collider other) { if (other.tag == GearParent.MogoPlayerTag) { if (triggleEnable) { stateOne = false; if (!isTriggerRepeat) { triggleEnable = false; } handler.HandleFx(fxID, null, (go, guid) => { if (Camera.main != null) { go.transform.parent = Camera.main.transform; go.transform.localPosition = Vector3.zero; go.transform.localRotation = new Quaternion(0, 0, 0, go.transform.localRotation.w); go.transform.localScale = new Vector3(1, 1, 1); } }); } } }
private void AddDoorFx() { GameObject city = GameObject.Find("10004_City"); if (city == null) { return; } Transform door = city.transform.Find("transfer"); if (door == null) { return; } foreach (Transform t in door) { if (CanEnterAnyDoor) { SfxHandler sfx = t.GetComponent <SfxHandler>(); if (sfx == null) { sfx = t.gameObject.AddComponent <SfxHandler>(); } sfx.HandleFx(101104); } if (t.GetComponent <DoorOfBury>() == null) { t.gameObject.AddComponent <DoorOfBury>(); } } //door.GetComponent<DoorOfBury>().BurnTheDoor(CanEnterAnyDoor); }
private void TriggerCues(SfxHandler cueHandler, int cuesID) { if (cueHandler) { cueHandler.HandleFx(cuesID); } }
public void EvolveToEndlessFX(int fxID,uint start) { m_fxID = fxID; handler = gameObject.AddComponent<SfxHandler>(); TimerHeap.AddTimer(start, 0, () => { handler.HandleFx(m_fxID, m_transform); }); }
public void PlayFX(int fxID, Transform target = null, Action <GameObject, string> action = null) { if (sfxHandler == null) { return; } sfxHandler.HandleFx(fxID, target, action, ""); }
void Start() { gearType = "Bomb"; triggleEnable = true; sfxHandler = gameObject.AddComponent <SfxHandler>(); timerID = uint.MaxValue; sfxHandler.HandleFx(6011, null, (go, dbid) => { go.transform.position = MogoWorld.thePlayer.Transform.position; }); }
void Start() { gearType = "Bomb"; triggleEnable = true; sfxHandler = gameObject.AddComponent<SfxHandler>(); timerID = uint.MaxValue; sfxHandler.HandleFx(6011, null, (go, dbid) => { go.transform.position = MogoWorld.thePlayer.Transform.position; }); }
public void SetFire() { if (isBurning) { return; } sfxHandler.HandleFx(1102402); swicthTimer = TimerHeap.AddTimer(800, 0, () => { TimerHeap.DelTimer(magmaDamageTimer); if (magmaDamageTimer != uint.MaxValue) { onFireDamageTimer = TimerHeap.AddTimer((uint)0, 0, SetMagmaOnFireDamage); } magmaDamageTimer = uint.MaxValue; isBurning = true; }); burnTimer = TimerHeap.AddTimer((uint)RandomHelper.GetRandomInt((int)(burnTime * 0.8), (int)(burnTime * 1.2)), 0, BurnUp); }
private void TriggerCues(SfxHandler cueHandler, int cuesID) { if (cueHandler) cueHandler.HandleFx(cuesID); }
public void EvolveToEndlessFX(int fxID, uint start) { m_fxID = fxID; handler = gameObject.AddComponent <SfxHandler>(); TimerHeap.AddTimer(start, 0, () => { handler.HandleFx(m_fxID, m_transform); }); }
protected void FoggyAbyssOpen() { handler.HandleFx(6035); isOpen = true; }