The Temple of Shallya allows its owner to move a unit "At the beginning of your Kingdom phase..."
Which comes first, the beginning of your Kingdom phase, or counting up how many power icons you have in your Kingdom in order to generate resources? It matters because the Temple of Shallya could enable its owner to move a unit into the Kingdom in order to contribute its power toward generating resources on that same turn.
However, I cannot find anywhere in the rules or FAQ that specify how to handle the timing of the resource generation that happens at the beginning of the Kingdom phase, and actions that happen at the beginning of your Kingdom phase.