private float[] _baseStatPoints = new float[5]; //Starting stat values before applying allocated points private void OnEnable() { //Assign functions to delegates onCheckBaseStats += RetrieveStatBaseStatPoints; onCheckManipulatedStats += RetrievePointsToAllocate; //Use delegates to check base stats and see if anything has been manipulated on startup if (_party != null) { onCheckBaseStats(_party.PartyMembers[_party.CurrentMember]); onCheckManipulatedStats(_party.PartyMembers[_party.CurrentMember]); } }
private void OnDisable() { onCheckBaseStats -= RetrieveStatBaseStatPoints; onCheckManipulatedStats -= RetrievePointsToAllocate; }