void OnTriggerEnter(Collider c) { if (triggered) { return; } ThirdPersonPlayer player = c.gameObject.GetComponent <ThirdPersonPlayer>(); if (player != null) { PingGUI.PopupText(text); triggered = true; } }
//public PingGUI deathStuff; void Update() { /*if(eTransform == null){ * InitializeEntity(); * }*/ if (withinKillingRange()) { Game.ReloadCurrentLevel(); PingGUI.PopupText("They caught you..."); return; } if (eTransform != null) //only update if we've been initialized { UpdateEntity(Time.deltaTime); } }
void Begin() { if (definition.IsEndCredits) { PingGUI.RollCredits(); } if (definition.IsIntro) { PingGUI.DoIntro(); } else { // do intro stuff here PingGUI.PopupText(definition.IntroText); LoadMap(); } }