private void Start()
 {
     _camera = GameObject.Find("CameraController").transform;   //카메라 추적
     _positionSpriteRenderer = GetComponent <SpriteRenderer>(); //SpriteRenderer 컴포넌트 담음
     _positionCollider       = GetComponent <Collider>();       //Collider 담음
     _locateItem             = GameObject.Find("Controllers").transform.Find("ItemController").GetComponent <LocateItem>();
     _timeController         = GameObject.Find("Controllers").transform.Find("SchedulerController").GetComponent <TimeController>();
 }
 public void Start()
 {
     _locateItem = GameObject.Find("ItemController").GetComponent <LocateItem>();
 }
Example #3
0
    /**
     * date 2018.07.18
     * author Lugub
     * desc
     *   코드상 복잡한 부분 - float x,y,z 와 rot_x,y,z를 전부 벡터로써 변환하는 작업을 함
     */
    /**
     * date 2018.07.19
     * author Lugub
     * desc
     *   코드상 복잡한 부분 - float x,y,z 와 rot_x,y,z를 전부 벡터로써 변환하는 작업을 함
     */

    /**
     * date 2018.07.20
     * author Lugub
     * desc
     *   물체의 위치를 옮기는 스크립트 LocateItem.cs를 하나 만들어서
     *   물체의 위치를 옮기는 작업 - ReLocate, Locate 를 동시에 그 스크립트에서 처리하게끔함
     *
     */

    /* 또한 동적인 부분이기 때문에 GameObject.Find사용*/
    public void Start()
    {
        _locateItem    = GameObject.Find("ItemController").GetComponent <LocateItem>();
        _readTextFiles = Static.STATIC.readTextFiles;
        dir_path       = Static.STATIC.dir_path;
    }