void OnTriggerExit2D(Collider2D other) { if (other.tag == "Aimed") { other.tag="Block_dest"; aim = false; aimed_block = null; aim_bloc = null; } }
void OnTriggerExit2D(Collider2D other) { if (other.tag == "Aimed") { other.tag = "Block_dest"; aim = false; aimed_block = null; aim_bloc = null; } }
void OnTriggerExit2D(Collider2D other) { aim = false; if (other.tag == "Aimed") { other.tag = "Block_dest"; b_des = null; block_damaging = null; } }
void OnTriggerExit2D(Collider2D other) { aim = false; if (other.tag == "Aimed") { other.tag="Block_dest"; b_des = null; block_damaging = null; } }
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; } }
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; } }