I have two characters under the same parented class, set up with a flip flop to switch between the two. I am trying to make a cooperative system that will share the same hud for picking up coins in the level. Right now, the flip flop works fine in possessing each character. But, I noticed the coin counter is dependant on which character picks up the coins. I.E. Char1 picks up 100 coins, then I switch to Char2. The coin counter then says 0 coins. He picks up 10 coins. I switch back to Char1, and the coin counter returns to show 100 coins. Is there a way to make this so any coins picked up, no matter which character is possessed will add to the same counter?
I need this to happen because one of the objectives in the level is to pick up a set total of coins.