Esempio n. 1
0
 private void OnEnable()
 {
     heldItemSpriteRend.enabled = true;
     PersistentDataManager.RegisterPersister(this);
     OnStart.AddListener(StartItem);
     OnHold.AddListener(HoldItem);
     OnEnd.AddListener(EndItem);
 }
Esempio n. 2
0
    void OnEnable()
    {
        PersistentDataManager.RegisterPersister(this);
        currentHealth = startingHealth;

        OnHealthSet.Invoke(this);

        DisableInvulnerability();
    }
Esempio n. 3
0
    void Awake()
    {
        Initialize(this);
        PersistentDataManager.RegisterPersister(this);

        if (checkPoints == null)
        {
            checkPoints = new HashSet <string>();
        }
    }
Esempio n. 4
0
    void OnEnable()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            throw new UnityException("There cannot be more than one PlayerInput script.  The instances are " + instance.name + " and " + name + ".");
        }

        PersistentDataManager.RegisterPersister(this);
    }
Esempio n. 5
0
 private void Awake()
 {
     PersistentDataManager.RegisterPersister(this);
 }
 void OnEnable()
 {
     PersistentDataManager.RegisterPersister(this);
 }
Esempio n. 7
0
 void Awake()
 {
     Initialize(this);
     PersistentDataManager.RegisterPersister(this);
 }
Esempio n. 8
0
 private void OnEnable()
 {
     PersistentDataManager.RegisterPersister(this);
     itemSet.onListChange += OnItemListChange;
 }
Esempio n. 9
0
 protected virtual void OnEnable()
 {
     _sprites = SpriteRoot.GetComponentsInChildren <SpriteRenderer>();
     PersistentDataManager.RegisterPersister(this);
 }
Esempio n. 10
0
 private void Awake()
 {
     m_Renderer = GetComponent <SpriteRenderer>();
     PersistentDataManager.RegisterPersister(this);
 }
 void OnEnable()
 {
     triggerCollider = this.transform.Find("TriggerCollider").GetComponent <Collider2D>();
     PersistentDataManager.RegisterPersister(this);
 }
Esempio n. 12
0
 void OnEnable()
 {
     collider = GetComponent <CircleCollider2D>();
     PersistentDataManager.RegisterPersister(this);
 }