Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class TestScript : MonoBehaviour
- {
- [SerializeField] static Transform testA;
- [SerializeField] LayerMask testB;
- public int num1 = 0;
- Vector2 testC = new Vector2(testA.position.x, testA.position.y);
- void OnDrawGizmosSelected()
- {
- Gizmos.color = Color.red;
- Gizmos.DrawWireSphere(testC, 2f);
- }
- void Update()
- {
- Vector2 testC = new Vector2(testA.position.x, testA.position.y);
- RaycastHit2D test1 = Physics2D.OverlapCircle(testC, 2f, testB);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement