void OnMouseDown() { if (AvatarActions.playerDead) { ClickToRestart = gameObject.GetComponent("avatar") as AvatarActions; ClickToRestart.OnMouseDown(); } }
public void AddSequence(string name, bool isOptional, bool isSelected) { AvatarActions.Add(new StreamAvatarsAvatarAction(RegisterCollectionSynchronizationCallback) { Name = name, IsOptional = isOptional, IsSelected = isSelected }); if (ActiveAction == null) { ActiveAction = AvatarActions[0]; } }