Exemplo n.º 1
0
    public static void PlaceZoneLink(Zone z1, Zone z2, bool alsoUpdateTheirLinkedList = false)
    {
        LinkLine theLink = LinkLineRecycler.GetALine();

        theLink.SetLink(z1.MyZoneSpot, z2.MyZoneSpot);
        instance.linkLines.Add(theLink);
        if (alsoUpdateTheirLinkedList)
        {
            z1.linkedZones.Add(z2.ID);
            z2.linkedZones.Add(z1.ID);
        }
    }
Exemplo n.º 2
0
    public static void PlaceZoneLink(ZoneSpot zs1, ZoneSpot zs2, bool alsoUpdateTheirLinkedList = false)
    {
        LinkLine theLink = LinkLineRecycler.GetALine();
        Zone     z1 = zs1.data as Zone, z2 = zs2.data as Zone;

        theLink.SetLink(zs1, zs2);
        instance.linkLines.Add(theLink);
        if (alsoUpdateTheirLinkedList)
        {
            z1.linkedZones.Add(z2.ID);
            z2.linkedZones.Add(z1.ID);
        }
    }
Exemplo n.º 3
0
 protected override void Awake()
 {
     base.Awake();
     instance = this;
 }