Пример #1
0
 protected override void DoAction()
 {
     base.DoAction();
     //InstantiatedPrefab.GetComponent<StoryManager>().enabled = false;
     Destroy(InstantiatedPrefab.GetComponent <StoryManager>());
     InstantiatedPrefab.GetComponent <QuestManager>().enabled  = false;
     InstantiatedPrefab.GetComponent <EventManager>().enabled  = false;
     InstantiatedPrefab.GetComponent <WorldTime>().enabled     = false;
     InstantiatedPrefab.GetComponent <CombatManager>().enabled = false;
 }
Пример #2
0
    protected override void DoAction()
    {
        base.DoAction();
        IllustrationScreen screen = InstantiatedPrefab.GetComponent <IllustrationScreen>();

        screen.url = url;
        Image image = screen.bg.GetComponent <Image>();

        image.sprite = Resources.Load <Sprite>(resourceSpritePath);
        InstantiatedPrefab.transform.SetParent(ScreenManager.Instance.transform, worldPositionStays);

        if (nativeSize)
        {
            image.SetNativeSize();
        }
    }