Newer
Older
Traffic-Simulator / Assets / Scripts / Roads / Node / CustomNode.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CustomNode : Node {
    public int lightPhase = 0;
    public bool isPassable = true;

    public CustomNode(Vector3 position, Transform parent, Config config): base(position, parent, config) {
    }

    override public void delete() {
        forceDelete();
    }

    override public void pull(Vector3 position) {
        this.position = position;
        gameObject.transform.position = position;
        update();
    }
}