예제 #1
0
파일: Player.cs 프로젝트: bbroeking/artemis
    protected override void Start()
    {
        // Find All UI Objects
        uISingleton = UISingleton.Instance;
        soulPanel   = uISingleton.GetComponentInChildren <SoulPanel>();
        recapUI     = uISingleton.GetComponentInChildren <RecapUI>();
        relicUI     = uISingleton.GetComponentInChildren <RelicUI>();
        itemTooltip = uISingleton.GetComponentInChildren <ItemTooltip>();
        // itemSaveManager = FindObjectOfType<ItemSaveManager>(); TODO: Save System

        // Set UI
        soulPanel.SetTexts(this.souls);
        soulPanel.UpdateTextsValues();

        // TODO setting base values here is going to cause confusion
        map = new Room(new Vector2(0, 0), true, true, true, true); // default path
    }
예제 #2
0
    void Start()
    {
        uISingleton = UISingleton.Instance;
        // Find All UI Objects
        levelPanel = uISingleton.GetComponentInChildren <LevelPanel>();

        UpdateUI();
    }
예제 #3
0
 void Start()
 {
     uISingleton         = UISingleton.Instance;
     sanityUI            = uISingleton.GetComponentInChildren <SanityUI>();
     maxEssence          = 5;
     activeSoul          = Soul.gravity;
     inactiveSoul        = Soul.poison;
     this.gravityEssence = this.maxEssence;
     this.poisonEssence  = this.maxEssence;
 }
예제 #4
0
    void Start()
    {
        player      = PlayerSingleton.Instance.player;
        playerRelic = player.relics;
        relics      = playerRelic.relics;
        SetStartingItems();

        uISingleton = UISingleton.Instance;
        itemTooltip = uISingleton.GetComponentInChildren <ItemTooltip>();

        this.OnPointerEnterEvent += ShowTooltip;
        this.OnPointerExitEvent  += HideTooltip;
    }