コード例 #1
0
ファイル: death.cs プロジェクト: RaianShinogu/GPS2-Team-4
 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 Start()
 {
     uiPathManager   = transform.parent.GetComponentInParent <UIPathManager>();
     nodePathManager = uiPathManager.nodePathManager.GetComponent <NodePathManager>();
     nodePathChange  = nodePathManager.GetComponentInChildren <NodePathChange>();
 }