GameObject CreateDot(RadarDotType dotType) { if(dotType == RadarDotType.Enemy) { return Instantiate(dot, Vector3.zero, Quaternion.identity) as GameObject; } return new GameObject(); }
public RadarElement(Vector2 _position, RadarDotType _dotType) { dotType = _dotType; position = _position; }