예제 #1
0
 private void FixedUpdate()
 {
     if (Physics.Raycast(ray, out hit))
     {
         bottomNode      = hit.collider.gameObject;
         nodePathManager = bottomNode.GetComponentInParent <NodePathManager>();
         NodePathChange  = bottomNode.GetComponent <NodePathChange>();
     }
 }
예제 #2
0
    private void Awake()
    {
        originalPos     = this.transform.position;
        instantiatePos  = new Vector3(originalPos.x, originalPos.y, originalPos.z);
        nodePathManager = transform.parent.GetComponent <NodePathManager>();

        originalScale = this.transform.localScale;
        shrinkPos     = new Vector3(originalPos.x, originalPos.y - 2f, originalPos.z);
        shrinkScale   = new Vector3(0.5f, 0.5f, 0f);
    }
예제 #3
0
 // Start is called before the first frame update
 void Start()
 {
     uiPathManager   = transform.parent.GetComponentInParent <UIPathManager>();
     nodePathManager = uiPathManager.nodePathManager.GetComponent <NodePathManager>();
 }
예제 #4
0
 private void Start()
 {
     uiPathManager   = transform.parent.GetComponentInParent <UIPathManager>();
     nodePathManager = uiPathManager.nodePathManager.GetComponent <NodePathManager>();
     nodePathChange  = nodePathManager.GetComponentInChildren <NodePathChange>();
 }
예제 #5
0
    // Update is called once per frame

    void Start()
    {
        //thisObjectsMaterial = this.gameObject.GetComponent<Renderer>().material;
        uiPathManager   = transform.parent.GetComponentInParent <UIPathManager>();
        nodePathManager = uiPathManager.nodePathManager.GetComponent <NodePathManager>();
    }