Exemplo n.º 1
0
    GameObject CreateDot(RadarDotType dotType)
    {
        if(dotType == RadarDotType.Enemy)
        {
            return Instantiate(dot, Vector3.zero, Quaternion.identity) as GameObject;

        }
        return new GameObject();
    }
Exemplo n.º 2
0
 public RadarElement(Vector2 _position, RadarDotType _dotType)
 {
     dotType = _dotType;
     position = _position;
 }