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); }
protected override void OnAppearing() { Task.Run(async() => { await Task.Delay(TimeSpan.FromSeconds(0.5)); Seal.Focus(); }); }
private void ExecuteSealFocus() { Seal.Focus(); }