public override void DoIsoCollisionExit(IsoCollision collision) { if (collisionType == IsoCollisionType.IsoCollisionExit) { DoAction(collision); } }
void OnIsoCollisionExit(IsoCollision collision) { if (_action != null && _started) { _action.DoIsoCollisionExit(collision); } }
void OnIsoCollisionEnter(IsoCollision iso_collision) { if ( iso_collision.gameObject ) { var alient = iso_collision.gameObject.GetComponent<AlienBallController>(); if ( alient ) { Destroy(alient.gameObject); } } }
private void OnIsoCollisionExit(IsoCollision iso_collision) { base.OnIsoCollisionExit(iso_collision); if (iso_collision.gameObject.tag == "Water") { canFillBucket = false; } }
void OnIsoCollisionEnter(IsoCollision iso_collision) { base.OnIsoCollisionEnter(iso_collision); if (iso_collision.gameObject.name == "splashWaterPrefab(Clone)") { RecoverLife(); } }
void OnIsoCollisionEnter(IsoCollision iso_collision) { var GateName = iso_collision.gameObject.name; if (GateName == "GateEast") { movePlayer("Map1", "Map2", GateName); } }
/// ************************************************************************* /// Author: /// <summary> /// Sobrecarregou o método padrão do Unity OnCollisionEnter /// </summary> /// <param name="iso_collision">A referencia do objeto colidido</param> void OnIsoCollisionEnter(IsoCollision iso_collision) { // Caso o fogo colida com o splash de agua deleta os dois if (iso_collision.gameObject.name == "chamas" || iso_collision.gameObject.name == "chamasSemSpread") { StatsController.AddXp(30); Destroy(iso_collision.gameObject); Destroy(gameObject); } }
public override void OnIsoCollisionEnter(IsoCollision iso_collision) { base.OnIsoCollisionEnter(iso_collision); if (iso_collision.gameObject.name == "splashWaterPrefab(Clone)") { _life = _life - 50; } }
private void OnIsoCollisionEnter(IsoCollision iso_collision) { base.OnIsoCollisionEnter(iso_collision); if (iso_collision.gameObject.tag == "Water") { if (isPlayerWithBucket()) { GetComponent <IsoRigidbody>().velocity = Vector3.one; canFillBucket = true; } } }
void DoAction(IsoCollision collision) { var go = Fsm.GetOwnerDefaultTarget(gameObject); if (UpdateCache(go)) { if (collision.collider.gameObject.tag == collideTag.Value) { storeIsoCollider.Value = collision.collider.gameObject; storeForce.Value = collision.relativeVelocity.magnitude; Fsm.Event(sendEvent); } } }
public virtual void OnIsoCollisionEnter(IsoCollision iso_collision) { collisionTime = 0; if (iso_collision.gameObject.tag == "Altar") { _life = _life + 10; } if (iso_collision.gameObject.tag == "Flame") { TempDemage = iso_collision.gameObject.GetComponent <Fire>().GetDamage(); inFire = true; } }
public virtual void DoIsoCollisionEnter(IsoCollision collision) { }
void OnIsoCollisionExit(IsoCollision iso_collision) { Debug.LogFormat( "OnIsoCollisionExit. self:{0} other:{1}", gameObject.name, iso_collision.gameObject.name); }
void OnIsoCollisionStay(IsoCollision isoCollisionInfo) { Debug.Log(gameObject.name + " stays on collision with " + isoCollisionInfo.isoCollider.name + ", awesome!"); }
public virtual void OnIsoCollisionExit(IsoCollision iso_collision) { inFire = false; }
void OnIsoCollisionEnter(IsoCollision isoCollisionInfo) { Debug.Log(gameObject.name + " enters collision with " + isoCollisionInfo.isoCollider.name + ", awesome!"); }
public virtual void DoIsoCollisionExit(IsoCollision collision) { }