void OnTriggerExit2D(Collider2D other)
 {
     if (other.tag == "Aimed") {
                 other.tag="Block_dest";
                     aim = false;
         aimed_block = null;
         aim_bloc = null;
             }
 }
Exemple #2
0
 void OnTriggerExit2D(Collider2D other)
 {
     if (other.tag == "Aimed")
     {
         other.tag   = "Block_dest";
         aim         = false;
         aimed_block = null;
         aim_bloc    = null;
     }
 }
Exemple #3
0
 void OnTriggerExit2D(Collider2D other)
 {
     aim = false;
     if (other.tag == "Aimed")
     {
         other.tag      = "Block_dest";
         b_des          = null;
         block_damaging = null;
     }
 }
Exemple #4
0
 void OnTriggerExit2D(Collider2D other)
 {
     aim = false;
     if (other.tag == "Aimed")
     {
         other.tag="Block_dest";
         b_des = null;
         block_damaging = null;
     }
 }
Exemple #5
0
 void OnTriggerEnter2D(Collider2D other)
 {
     aim = true;
     if (other.tag == "Block_dest")
     {
         other.tag      = "Aimed";
         block_damaging = GameObject.FindGameObjectWithTag("Aimed");
         b_des          = block_damaging.GetComponent <block_destruction> ();
         //block_damaging = GameObject.FindGameObjectWithTag("Aimed");
     }
 }
    void OnTriggerEnter2D(Collider2D other)
    {
        // Debug.Log(other.gameObject.name);
        if (other.tag == "Block_dest") {
            other.tag="Aimed";
            aimed_block = GameObject.FindGameObjectWithTag("Aimed");
            aim_bloc = aimed_block.GetComponent<block_destruction>();

            aim=true;
                }
    }
Exemple #7
0
 void OnTriggerEnter2D(Collider2D other)
 {
     aim = true;
     if (other.tag == "Block_dest")
     {
         other.tag="Aimed";
         block_damaging = GameObject.FindGameObjectWithTag("Aimed");
         b_des = block_damaging.GetComponent<block_destruction> ();
         //block_damaging = GameObject.FindGameObjectWithTag("Aimed");
             }
 }
Exemple #8
0
    void OnTriggerEnter2D(Collider2D other)
    {
        // Debug.Log(other.gameObject.name);
        if (other.tag == "Block_dest")
        {
            other.tag   = "Aimed";
            aimed_block = GameObject.FindGameObjectWithTag("Aimed");
            aim_bloc    = aimed_block.GetComponent <block_destruction>();

            aim = true;
        }
    }