Bill Cosby has paid tribute to his Cosby Show on-screen son Malcolm-Jamal Warner, who drowned while on a family trip in Costa Rica on Sunday. Cosby's spokesperson, Andrew Wyatt, told People that Warner's tragic death "reminded him of the same call he received when his son died." (Cosby's son, Ennis Cosby, was murdered in 1997 during an attempted robbery on a Los Angeles freeway ramp as he tried to change a flat tire. He was 27.)Authorities said Warner's official cause of death was asphyxia, caused when the body is deprived of oxygen. He died near Playa Cocles, a beach in Limon, Costa Rica, according to police, adding that the actor was caught by a strong current in the water and his body was found Sunday afternoon.

Wyatt said Cosby's son "played with Malcolm" and called the 54-year-old actor's death "devastating." Story continues below advertisement "He found a way to talk about Malcolm even though he was sad," Wyatt said of Cosby.

Cosby, 88, said that "Malcolm was doing what he loved when he died - he was with his family.""He had just done a concert in Minnesota and called Mr. Cosby and talked about it. They spoke all the time. He said 'Malcolm was changing humanity,'" Wyatt said. 0:28 Malcolm-Jamal Warner, 'Cosby Show' star, dead at age 54 Cosby's spokesperson added that the actor was speaking with his Cosby Show co-stars following Warner's death. He said Cosby was "on the phone with Phylicia Rashad reminiscing about Malcolm." Get breaking National news For news impacting Canada and around the world, sign up for breaking news alerts delivered directly to you when they happen. Sign up for breaking National newsletter Sign Up By providing your email address, you have read and agree to Global News' Terms and Conditions and Privacy Policy. In another statement to CBS News, Cosby said that during his conversation with Rashad, who played his on-screen wife Claire Huxtable, the two were "embracing each other over the phone about a dearly beloved friend." Story continues below advertisement "He was never afraid to go to his room and study. He knew his lines and that he was quite comfortable even with the growing pains of a being a teenager," Cosby said, adding that he spoke to Warner "three months ago."Cosby's spokesperson also told the New York Post that the actor said of his on-screen children, "While I was their TV dad, I never stopped being a father to them." View image in full screen Bill Cosby acts with Malcolm-Jamal Warner in a scene from the 'Cosby Show.'. Jacques M. Chenet/CORBIS/Corbis via Getty Images In another statement to Us Weekly, Wyatt said Cosby praised Warner for his ability to be a role model for other teenagers, adding, "You never heard anything negative about the child actors from The Cosby Show. No drugs, no alcohol, none of that."Like the rest of the Cosby Show cast, Warner had to contend with the sexual assault allegations against Cosby, whose conviction in a Pennsylvania court was later overturned. Story continues below advertisement Warner told The Associated Press in 2015 that the show's legacy was "tarnished.""My biggest concern is when it comes to images of people of color on television and film," Warner said. "We've always had The Cosby Show to hold up against that. And the fact that we no longer have that, that's the thing that saddens me the most because in a few generations the Huxtables will have been just a fairy tale." Trending Now Trump thinks Canadians are 'mean and nasty' for boycotting U.S. travel, booze: Ambassador 'We miss you,' U.S. senators tell Canada as Lutnick vows tariffs will stay More on Entertainment More videos 'Go f-k yourself': Stephen Colbert responds to Trump's joy over cancellation Malcolm-Jamal Warner, 'Cosby Show' star, dead at 54 Ozzy Osbourne, rock icon and lead singer of Black Sabbath, dead at 76 Ellen DeGeneres says Donald Trump is the reason she moved to U.K. Malcolm-Jamal Warner, 'Cosby Show' star, dead at age 54 Astronomer CEO Andy Byron resigns after Coldplay 'kiss cam' video The Morning Show: July 22 'We love Canada!' Adam Sandler says Happy Gilmore 2 cast fell in love with BC In another interview, Warner referred to Cosby as his mentor and spoke about the positive interactions he's had with the comedian throughout his life."The Bill Cosby I know has been great to me and great for a lot of people," Warner said in an interview with Billboard in January 2015. "What he's done for comedy and television has been legendary and history-making. What he's done for the Black community and education has been invaluable. That's the Bill Cosby I know. I can't speak on the other stuff.""He's one of my mentors, and he's been very influential and played a big role in my life as a friend and mentor," Warner continued. "Just as it's painful to hear any woman talk about sexual assault, whether true or not, it's just as painful to watch my friend and mentor go through this."He played Theo Huxtable for eight seasons, appearing in each of the 197 episodes of The Cosby