예제 #1
0
    public Seal DisplaySeal(bool focused = false)
    {
        if (!isOwned || seal != null)
        {
            return(null);
        }

        GameObject sealPrefab = Resources.Load <GameObject>("Prefabs/Seal");
        GameObject anchorObj  = GameObject.Instantiate <GameObject>(sealPrefab, anchor.position, Quaternion.identity);

        anchorObj.transform.localScale = new Vector3(sealScale, sealScale, sealScale);
        seal = anchorObj.GetComponent <Seal>();
        if (!seal.Init(sigils.ToArray()))
        {
            Destroy(seal);
            return(null);
        }

        if (focused)
        {
            seal.Focus();
        }

        if (sigils.Count > 0)
        {
            seal.CreateCoreSigil(AspectResources.GetComponentMaterial(sigils[0]));
            for (int i = 1; i < sigils.Count; i++)
            {
                seal.CreateOrbitSigil(AspectResources.GetComponentMaterial(sigils[i]));
            }
        }

        return(seal);
    }
예제 #2
0
 protected override void OnAppearing()
 {
     Task.Run(async() =>
     {
         await Task.Delay(TimeSpan.FromSeconds(0.5));
         Seal.Focus();
     });
 }
예제 #3
0
 private void ExecuteSealFocus()
 {
     Seal.Focus();
 }