I have a StageScript in which I am filling an array in the inspector named UnorthodoxSeats marking it as [SerializeField] protected GameObject[] UnorthodoxSeats in the script. When the script runs, after some time a Character is instantiated to move towards the seat. The Character has also a script named CharacterScript which is the derived class of StageScript. Now, In the CharacterScript whenever I get UnorthodoxSeats.Length it shows 0. I am confused why?
Yes I think it was that. I made the array public and created a place holder for Stage in the character script and accessed it as the characters great grand parent and accessed the stage script and array from that place holder and it is working fine now.