示例#1
0
 private void InitNode(GameObject keepNode)
 {
     gKeepNode     = keepNode;
     gRoleNode     = keepNode.transform.Find("RoleNode").gameObject;
     gCamCompt     = keepNode.transform.Find("CameraNode/ShakeNode/CameraCtrlNode").GetComponent <AutoCam>();
     gShakeCompt   = keepNode.transform.Find("CameraNode/ShakeNode").GetComponent <ShakecameraControl>();
     gUICamera     = keepNode.transform.Find("CameraNode/UICamera").gameObject;
     gUICameraCmpt = gUICamera.GetComponent <Camera>();
     gMapNode      = keepNode.transform.Find("MapNode").gameObject;
     gBulletNode   = keepNode.transform.Find("BulletNode").gameObject;
     gAudioSource  = keepNode.transform.Find("Global").GetComponent <AudioSourceController>();
     gLightCompt   = keepNode.transform.Find("DireLight").GetComponent <Light>();
     gMainRoleUI   = keepNode.transform.GetComponentInChildren <MainRoleUICtrl>(true);
 }
示例#2
0
 void Awake()
 {
     m_AutoAcam         = GetComponent <AutoCam>();
     m_Animator.enabled = false;
 }