示例#1
0
    GameObject CreateDot(RadarDotType dotType)
    {
        if(dotType == RadarDotType.Enemy)
        {
            return Instantiate(dot, Vector3.zero, Quaternion.identity) as GameObject;

        }
        return new GameObject();
    }
示例#2
0
 public RadarElement(Vector2 _position, RadarDotType _dotType)
 {
     dotType = _dotType;
     position = _position;
 }