protected void Register(Game game) { RegisterResources(); game.CGME_Game.AddPhase(CGME_phase); manager = FindObjectOfType <GameManager>(); // for (int i = 0; i<transform.childCount; i++){ // transform.GetChild(i).SendMessage("Register", this, SendMessageOptions.DontRequireReceiver); // } foreach (int action_index in action_sequence) { CGME.ActionGroup new_action = new CGME.ActionGroup(); //if (manager.Actions[action_index].CGME_ActionRoot == null) Debug.Log ("Action null"); new_action.CopyFrom(manager.CGME_Lib.actionLibrary[action_index]); CGME_phase.AddAction(new_action); } SetListener(); }