public Vector3 _humanInitRotation; //사람일 경우 초기방향 -> 정지버튼을 눌렀을때 해당 방향으로 쳐다봄 void Start() { _clickedItemControl = GameObject.Find("ClickedItemCanvas").GetComponent <ClickedItemControl>(); /* 사람 객체일 경우, Animator Controller 변수를 할당 해 주도록! */ if (_thisItem._originNumber >= 2000 && _thisItem._originNumber < 3000) { _animator = _thisItem.item3d.GetComponent <Animator>(); //사람객체의 초기위치를 기억시켜놓음 //초기위치는 _item의 포지션 //_humanInitPosition = this.gameObject.transform.parent.transform.localPosition; //사람객체의 초기방향을 기억시켜놓음 //초기방향은 _item.item3d의 로테이션 //_humanInitRotation = this.gameObject.transform.rotation; } _cameraMoveAron = GameObject.Find("CameraController").GetComponent <CameraMoveAroun>(); if (_thisItem._originNumber == 2001) //남 { this.gameObject.transform.parent.name = "Man" + _thisItem._objectNumber; } else if (_thisItem._originNumber == 2000) //테스트 { this.gameObject.transform.parent.name = "Daughter" + _thisItem._objectNumber; } else if (_thisItem._originNumber == 2002) //여 { this.gameObject.transform.parent.name = "Woman" + _thisItem._objectNumber; } else if (_thisItem._originNumber == 2003) { this.gameObject.transform.parent.name = "Woongin" + _thisItem._objectNumber; } }
private void Start() { /* static 으로 선언된 스크립트를 연결시켜 준다. */ _cameraMoveAroundSwi = Static.STATIC.cameraMoveAroun; _bigScheduler = GameObject.Find("Canvas").transform.GetChild(2).GetChild(4).GetChild(1).GetChild(0).GetChild(0).GetChild(0).gameObject; _smallScheduler = GameObject.Find("Canvas").transform.GetChild(2).GetChild(4).GetChild(1).GetChild(0).GetChild(0).GetChild(1).gameObject; }
// Use this for initialization void Start() { _clickedItemControl = GameObject.Find("ClickedItemCanvas").GetComponent <ClickedItemControl>(); /* 사람 객체일 경우, Animator Controller 변수를 할당 해 주도록! */ if (_thisItem._originNumber >= 2000 && _thisItem._originNumber < 3000) { _animator = _thisItem.item3d.GetComponent <Animator>(); _cameraMoveAron = GameObject.Find("CameraController").GetComponent <CameraMoveAroun>(); } }
private void Start() { _scrollRect = GameObject.Find("Canvas/ItemMenuCanvas/ClickedItemCanvas/VoiceCanvas/Scroll View").GetComponent <ScrollRect>(); _cameraMoveAroundSwi = Static.STATIC.cameraMoveAroun; _startDBController = GameObject.Find("StartDBController").GetComponent <StartDBController>(); }
// Use this for initialization void Start() { _cameraMoveAroundSwi = Static.STATIC.cameraMoveAroun; }