Exemplo n.º 1
0
 public void init(int t, Vector2 io, timelineComponentInterface _dev)
 {
     snapping            = _dev.snapping;
     track               = t;
     in_out              = io;
     _componentInterface = _dev;
     body.setHue(t);
     gridUpdate();
 }
    void Awake()
    {
        _deviceInterface = GetComponentInParent <timelineComponentInterface>();

        windowMesh = new Mesh();
        window.GetComponent <MeshFilter>().mesh = windowMesh;
        window.GetComponent <Renderer>().material.SetColor("_TintColor", Color.white);
        windowCollider  = window.GetComponent <BoxCollider>();
        edgeInCollider  = edgeIn.GetComponent <BoxCollider>();
        edgeOutCollider = edgeOut.GetComponent <BoxCollider>();
    }
Exemplo n.º 3
0
 void Awake()
 {
     gameObject.layer = 9;
     _interface       = GetComponentInParent <timelineComponentInterface>();
 }
 public override void Awake()
 {
     base.Awake();
     _timeline = GetComponent <timelineComponentInterface>();
     _timeline.SetStartVariables(4, 3, .4f, .2f, new Vector2(0, 8), new Vector2(0, 8));
 }
Exemplo n.º 5
0
 void Awake()
 {
     _deviceInterface = GetComponent <timelineComponentInterface>();
 }