bug fix
This commit is contained in:
@@ -697,6 +697,16 @@ namespace Gallop.Live.Cutt
|
||||
return _multiCameraCache[index].cacheTransform.rotation;
|
||||
}
|
||||
|
||||
public Vector3 GetMultiCameraWorldPosition(int index)
|
||||
{
|
||||
if (_multiCameraCache == null || _multiCameraCache.Length <= index)
|
||||
{
|
||||
return Vector3.zero;
|
||||
}
|
||||
return _multiCameraCache[index].cacheTransform.position;
|
||||
}
|
||||
|
||||
|
||||
public bool ExistsMultiCamera(int index)
|
||||
{
|
||||
if (_multiCameraCache != null && index < _multiCameraCache.Length)
|
||||
@@ -835,7 +845,7 @@ namespace Gallop.Live.Cutt
|
||||
{
|
||||
if (posFlags.hasFlag((LiveCharaPosition)i) && liveCharactorLocators[i] != null)
|
||||
{
|
||||
retPos += liveCharactorLocators[i].liveCharaConstHeightHeadPosition;
|
||||
retPos.y += liveCharactorLocators[i].liveCharaConstHeightHeadPosition.y;
|
||||
retPos += cameraOffset * liveCharactorLocators[i].liveCharaHeightRatio;
|
||||
retPos += charaPos;
|
||||
num++;
|
||||
@@ -849,7 +859,7 @@ namespace Gallop.Live.Cutt
|
||||
{
|
||||
if (posFlags.hasFlag((LiveCharaPosition)i) && liveCharactorLocators[i] != null)
|
||||
{
|
||||
retPos += liveCharactorLocators[i].liveCharaConstHeightWaistPosition;
|
||||
retPos.y += liveCharactorLocators[i].liveCharaConstHeightWaistPosition.y;
|
||||
retPos += cameraOffset * liveCharactorLocators[i].liveCharaHeightRatio;
|
||||
retPos += charaPos;
|
||||
num++;
|
||||
@@ -863,7 +873,7 @@ namespace Gallop.Live.Cutt
|
||||
{
|
||||
if (posFlags.hasFlag((LiveCharaPosition)i) && liveCharactorLocators[i] != null)
|
||||
{
|
||||
retPos += liveCharactorLocators[i].liveCharaConstHeightChestPosition;
|
||||
retPos.y += liveCharactorLocators[i].liveCharaConstHeightChestPosition.y;
|
||||
retPos += cameraOffset * liveCharactorLocators[i].liveCharaHeightRatio;
|
||||
retPos += charaPos;
|
||||
num++;
|
||||
@@ -877,7 +887,7 @@ namespace Gallop.Live.Cutt
|
||||
{
|
||||
if (posFlags.hasFlag((LiveCharaPosition)i) && liveCharactorLocators[i] != null)
|
||||
{
|
||||
retPos += liveCharactorLocators[i].liveCharaFootPosition;
|
||||
retPos.y += liveCharactorLocators[i].liveCharaFootPosition.y;
|
||||
retPos += cameraOffset * liveCharactorLocators[i].liveCharaHeightRatio;
|
||||
retPos += charaPos;
|
||||
num++;
|
||||
|
||||
@@ -283,7 +283,7 @@ namespace Gallop.Live
|
||||
public HandShakeCamera HandShakeCamera { get; }
|
||||
//public GallopFrameBuffer FrameBuffer { get; }
|
||||
public Camera MainCameraObject { get; }
|
||||
public Transform MainCameraTransform { get; }
|
||||
public Transform MainCameraTransform => _mainCameraTransform;
|
||||
public List<CharacterObject> CharacterObjectList { get; }
|
||||
public List<CharaEffectInfo> listShadowEffectInfo { get; }
|
||||
public List<CharaEffectInfo> listSpotLightEffectInfo { get; }
|
||||
@@ -380,12 +380,12 @@ namespace Gallop.Live
|
||||
_instance = this;
|
||||
Debug.Log(string.Format(CUTT_PATH, live.MusicId));
|
||||
Debug.Log(live.BackGroundId);
|
||||
Builder.LoadAssetPath(string.Format(CUTT_PATH, live.MusicId), this.gameObject.transform);
|
||||
Builder.LoadAssetPath(string.Format(STAGE_PATH, live.BackGroundId), this.gameObject.transform);
|
||||
Builder.LoadAssetPath(string.Format(CUTT_PATH, live.MusicId), transform);
|
||||
Builder.LoadAssetPath(string.Format(STAGE_PATH, live.BackGroundId), transform);
|
||||
|
||||
//Make CharacterObject
|
||||
|
||||
var characterStandPos = this._liveTimelineControl.transform.Find("CharacterStandPos");
|
||||
var characterStandPos = _liveTimelineControl.transform.Find("CharacterStandPos");
|
||||
int counter = 0;
|
||||
foreach (Transform trans in characterStandPos.GetComponentsInChildren<Transform>())
|
||||
{
|
||||
@@ -393,7 +393,7 @@ namespace Gallop.Live
|
||||
{
|
||||
continue;
|
||||
}
|
||||
var newObj = Instantiate(trans, this.transform);
|
||||
var newObj = Instantiate(trans, transform);
|
||||
newObj.gameObject.name = string.Format("CharacterObject{0}", counter);
|
||||
charaObjs.Add(newObj.transform);
|
||||
counter++;
|
||||
|
||||
Reference in New Issue
Block a user