private void OnEnable() { heldItemSpriteRend.enabled = true; PersistentDataManager.RegisterPersister(this); OnStart.AddListener(StartItem); OnHold.AddListener(HoldItem); OnEnd.AddListener(EndItem); }
void OnEnable() { PersistentDataManager.RegisterPersister(this); currentHealth = startingHealth; OnHealthSet.Invoke(this); DisableInvulnerability(); }
void Awake() { Initialize(this); PersistentDataManager.RegisterPersister(this); if (checkPoints == null) { checkPoints = new HashSet <string>(); } }
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); }
private void Awake() { PersistentDataManager.RegisterPersister(this); }
void OnEnable() { PersistentDataManager.RegisterPersister(this); }
void Awake() { Initialize(this); PersistentDataManager.RegisterPersister(this); }
private void OnEnable() { PersistentDataManager.RegisterPersister(this); itemSet.onListChange += OnItemListChange; }
protected virtual void OnEnable() { _sprites = SpriteRoot.GetComponentsInChildren <SpriteRenderer>(); PersistentDataManager.RegisterPersister(this); }
private void Awake() { m_Renderer = GetComponent <SpriteRenderer>(); PersistentDataManager.RegisterPersister(this); }
void OnEnable() { triggerCollider = this.transform.Find("TriggerCollider").GetComponent <Collider2D>(); PersistentDataManager.RegisterPersister(this); }
void OnEnable() { collider = GetComponent <CircleCollider2D>(); PersistentDataManager.RegisterPersister(this); }