コード例 #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
ファイル: RelicUI.cs プロジェクト: bbroeking/artemis
    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;
    }