public override void DoIsoCollisionExit(IsoCollision collision)
 {
     if (collisionType == IsoCollisionType.IsoCollisionExit)
     {
         DoAction(collision);
     }
 }
 void OnIsoCollisionExit(IsoCollision collision)
 {
     if (_action != null && _started)
     {
         _action.DoIsoCollisionExit(collision);
     }
 }
Пример #3
0
		void OnIsoCollisionEnter(IsoCollision iso_collision) {
			if ( iso_collision.gameObject ) {
				var alient = iso_collision.gameObject.GetComponent<AlienBallController>();
				if ( alient ) {
					Destroy(alient.gameObject);
				}
			}
		}
Пример #4
0
        private void OnIsoCollisionExit(IsoCollision iso_collision)
        {
            base.OnIsoCollisionExit(iso_collision);

            if (iso_collision.gameObject.tag == "Water")
            {
                canFillBucket = false;
            }
        }
Пример #5
0
        void OnIsoCollisionEnter(IsoCollision iso_collision)
        {
            base.OnIsoCollisionEnter(iso_collision);

            if (iso_collision.gameObject.name == "splashWaterPrefab(Clone)")
            {
                RecoverLife();
            }
        }
Пример #6
0
        void OnIsoCollisionEnter(IsoCollision iso_collision)
        {
            var GateName = iso_collision.gameObject.name;


            if (GateName == "GateEast")
            {
                movePlayer("Map1", "Map2", GateName);
            }
        }
Пример #7
0
        /// *************************************************************************
        /// 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);
            }
        }
Пример #8
0
        public override void OnIsoCollisionEnter(IsoCollision iso_collision)
        {

            base.OnIsoCollisionEnter(iso_collision);

            if (iso_collision.gameObject.name == "splashWaterPrefab(Clone)")
            {

                _life = _life - 50;


            }
        }
Пример #9
0
        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);
                }
            }
        }
Пример #11
0
        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)
 {
 }
Пример #13
0
		void OnIsoCollisionExit(IsoCollision iso_collision) {
			Debug.LogFormat(
				"OnIsoCollisionExit. self:{0} other:{1}",
				gameObject.name, iso_collision.gameObject.name);
		}
Пример #14
0
 void OnIsoCollisionStay(IsoCollision isoCollisionInfo)
 {
     Debug.Log(gameObject.name + " stays on collision with " + isoCollisionInfo.isoCollider.name + ", awesome!");
 }
Пример #15
0
 public virtual void OnIsoCollisionExit(IsoCollision iso_collision)
 {
     inFire = false;
 }
Пример #16
0
 void OnIsoCollisionEnter(IsoCollision isoCollisionInfo)
 {
     Debug.Log(gameObject.name + " enters collision with " + isoCollisionInfo.isoCollider.name + ", awesome!");
 }
 public virtual void DoIsoCollisionExit(IsoCollision collision)
 {
 }