I have a window that contains two groups of tweens for it's 'lifecycle'.
I've searched around the forum and I'm having trouble pinning down the correct way to implement this. I'm clearly doing a noob error here...
I have a warning: Implicit downcast from 'UnityEngine.Component[]' to 'UITweener[]'.
Currently, I have a script similar to below:
var myTweens : UITweener[];
function Start ()
{
myTweens = transform.GetComponents(UITweener);
}
function PlayGroup(groupToPlay : int)
{
for (var i : int = 0; i < myTweens.Length; ++i)
{
var currentTweener : UITweener = myTweens[i];
if (currentTweener.tweenGroup == groupToPlay)
{
currentTweener.Play(true);
}
}
}