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

        OnHealthSet.Invoke(this);

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

        if (checkPoints == null)
        {
            checkPoints = new HashSet <string>();
        }
    }
Exemplo 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);
    }
Exemplo n.º 5
0
 private void Awake()
 {
     PersistentDataManager.RegisterPersister(this);
 }
 void OnEnable()
 {
     PersistentDataManager.RegisterPersister(this);
 }
Exemplo n.º 7
0
 void Awake()
 {
     Initialize(this);
     PersistentDataManager.RegisterPersister(this);
 }
Exemplo n.º 8
0
 private void OnEnable()
 {
     PersistentDataManager.RegisterPersister(this);
     itemSet.onListChange += OnItemListChange;
 }
Exemplo n.º 9
0
 protected virtual void OnEnable()
 {
     _sprites = SpriteRoot.GetComponentsInChildren <SpriteRenderer>();
     PersistentDataManager.RegisterPersister(this);
 }
Exemplo n.º 10
0
 private void Awake()
 {
     m_Renderer = GetComponent <SpriteRenderer>();
     PersistentDataManager.RegisterPersister(this);
 }
Exemplo n.º 11
0
 void OnEnable()
 {
     triggerCollider = this.transform.Find("TriggerCollider").GetComponent <Collider2D>();
     PersistentDataManager.RegisterPersister(this);
 }
Exemplo n.º 12
0
 void OnEnable()
 {
     collider = GetComponent <CircleCollider2D>();
     PersistentDataManager.RegisterPersister(this);
 }