Example #1
0
 void OnTriggerExit2D(Collider2D other)
 {
     if (other.tag == "Aimed") {
                 other.tag="Block_dest";
                     aim = false;
         aimed_block = null;
         aim_bloc = null;
             }
 }
Example #2
0
 void OnTriggerExit2D(Collider2D other)
 {
     if (other.tag == "Aimed")
     {
         other.tag   = "Block_dest";
         aim         = false;
         aimed_block = null;
         aim_bloc    = null;
     }
 }
Example #3
0
 void OnTriggerExit2D(Collider2D other)
 {
     aim = false;
     if (other.tag == "Aimed")
     {
         other.tag      = "Block_dest";
         b_des          = null;
         block_damaging = null;
     }
 }
Example #4
0
 void OnTriggerExit2D(Collider2D other)
 {
     aim = false;
     if (other.tag == "Aimed")
     {
         other.tag="Block_dest";
         b_des = null;
         block_damaging = null;
     }
 }
Example #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");
     }
 }
Example #6
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;
                }
    }
Example #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");
             }
 }
Example #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;
        }
    }