111
This commit is contained in:
@@ -7,25 +7,29 @@ namespace Stary.Evo
|
||||
{
|
||||
private OpenDomainType OpenDomainType { get; set; }
|
||||
|
||||
private Vector3 position;
|
||||
private TransformCtor transformCtor;
|
||||
|
||||
public ProgressBarPanel ProgressBarPanel { get; set; }
|
||||
public void SetOpenDomainType(OpenDomainType type)
|
||||
{
|
||||
this.OpenDomainType = type;
|
||||
}
|
||||
public void SetPosition(Vector3 position)
|
||||
public void SetTransformCtor(Transform transform)
|
||||
{
|
||||
this.position = position;
|
||||
this.transformCtor = transform.GetTransformCtor();
|
||||
}
|
||||
public void SetTransformCtor(TransformCtor transformCtor)
|
||||
{
|
||||
this.transformCtor = transformCtor;
|
||||
}
|
||||
public OpenDomainType GetOpenDomainType()
|
||||
{
|
||||
return this.OpenDomainType;
|
||||
}
|
||||
|
||||
public Vector3 GetPosition()
|
||||
public TransformCtor GetTransformCtor()
|
||||
{
|
||||
return this.position;
|
||||
return this.transformCtor;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -90,7 +90,9 @@ namespace Stary.Evo
|
||||
}
|
||||
else if (fsmLoadSystem.GetOpenDomainType() == OpenDomainType.ImageTracked)
|
||||
{
|
||||
info.transform.position = fsmLoadSystem.GetPosition();
|
||||
info.transform.position = fsmLoadSystem.GetTransformCtor().position;
|
||||
info.transform.rotation = Quaternion.Euler(fsmLoadSystem.GetTransformCtor().rotation);
|
||||
info.transform.localScale = fsmLoadSystem.GetTransformCtor().scale;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
@@ -8,6 +8,7 @@ namespace Stary.Evo
|
||||
public string domain;
|
||||
|
||||
private FsmLoadSystem _fsmSystem;
|
||||
|
||||
/// <summary>
|
||||
/// 即将加载的domain场景
|
||||
/// </summary>
|
||||
@@ -69,11 +70,21 @@ namespace Stary.Evo
|
||||
AppConfig.PackageDomainName = domain;
|
||||
_fsmSystem.SetCurState(nameof(ResStartState));
|
||||
}
|
||||
public void OpenDomain(string domain, Vector3 position)
|
||||
|
||||
public void OpenDomain(string domain, TransformCtor transformCtor)
|
||||
{
|
||||
this.domain = domain;
|
||||
_fsmSystem.SetOpenDomainType(OpenDomainType.ImageTracked);
|
||||
_fsmSystem.SetPosition(position);
|
||||
_fsmSystem.SetTransformCtor(transformCtor);
|
||||
AppConfig.PackageDomainName = domain;
|
||||
_fsmSystem.SetCurState(nameof(ResStartState));
|
||||
}
|
||||
|
||||
public void OpenDomain(string domain, Transform transform)
|
||||
{
|
||||
this.domain = domain;
|
||||
_fsmSystem.SetOpenDomainType(OpenDomainType.ImageTracked);
|
||||
_fsmSystem.SetTransformCtor(transform);
|
||||
AppConfig.PackageDomainName = domain;
|
||||
_fsmSystem.SetCurState(nameof(ResStartState));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user