Beispiel #1
0
    public GameObject CreateBlipFromName(string name)
    {
        Vector3 localPos = NameUtility.GetCoordFromName(name);

        GameObject blip = Instantiate(blipTemplate, Vector3.zero, Quaternion.identity);

        blip.transform.parent        = planet;
        blip.transform.localPosition = localPos;
        blip.transform.up            = planet.rotation * localPos.normalized;
        blip.name = name;

        return(blip);
    }