Callback for PhotonNetwork.Instantiate

Options
I have the following code:
Debug.Log("1");
        _dmgDestroy = PhotonNetwork.Instantiate(pathTodmg + dmgDestroy.name, new Vector2(currentPos.x, currentPos.y), Quaternion.identity, 0);
        Debug.Log("2");
        _dmgDestroy.GetComponent<Spells.Dmg_Destroy>().AwakeInstantiate(gameObject);
The issue is that I want the AwakeInstantiate to be called AFTER I know the object Instantiated was spawned.
The main goal of this is to get the spawned object a handle of the object that spawned it. Is there a better way to accomplish this task?

Comments