void Start() { Instance = this; instance = this.gameObject; if (target == null) { GameObject go = GameObject.FindWithTag("Player"); if (go == null) { return; } target = go.transform; target = MogoUtils.GetChild(target, "slot_camera"); } //�ڴ������Ҫ�ų���������,�Ժ������layer������� //withoutTestObjectTags.Add("MainCamera"); //withoutTestObjectTags.Add("terrain"); //withoutTestObjectTags.Add("Player"); EventDispatcher.TriggerEvent(Events.OtherEvent.MainCameraComplete); m_camera = GetComponent <Camera>(); }