- Home /
Question by
$$anonymous$$ · Feb 11, 2014 at 08:48 PM ·
variablefunctionyieldreturn
How to return a variable outside NotificationCenter
I have this piece of code... and i have a data that came to a NotificationCenter
function HeatLevelIncrease (note : Notification)
{
var heatLevelIncrease : float = note.data;
print(heatLevelIncrease); // until here is ok
return heatLevelIncrease; // but that is the problem
}
// to use on other functions
function Esfriamento ()
{
print (heatLevelIncrease);
}
How to take out this variable to use in other functions?
Comment
Your answer
Follow this Question
Related Questions
Ienumerator return string 0 Answers
Have a function wait unitl a boolean is false 1 Answer
Yielding in between functions... 2 Answers
Re-using the "same" for loop? 1 Answer