//引用paipaipai脚本的手牌偏移量,测试 private void Awake() { Start_MJposition = this.transform.position; maskPai = transform.Find("/Main Camera").GetComponent <FICMaskPai>(); paipaipai = transform.Find("/Main Camera").GetComponent <FICpaipaipai>(); managerPengGang = transform.Find("/Main Camera").GetComponent <Manager_PengGang>(); startGame = transform.Find("/Main Camera").GetComponent <FICStartGame>(); myCards = transform.Find("/Main Camera").GetComponent <FICMyCards>(); SPCamera = transform.Find("/3D_SP_Camera").gameObject.GetComponent <Camera>(); ReminderLine = transform.Find("/Game_UI/Interaction_UI/desktop_UI/ReminderLine").gameObject; }
void Start() { var trans = GameObject.Find("ShouPaiContainer").transform.position; maskpai = gameObject.GetComponent <FICMaskPai>(); startGame = transform.Find("/Main Camera").GetComponent <FICStartGame>(); myCards = GetComponent <FICMyCards>(); gangContentTrans = transform.Find("/Game_UI/Interaction_UI/can_buttons_pghg/grid_gang"); buttonGang1 = gangContentTrans.Find("item_button_gang1").gameObject; buttonGang2 = gangContentTrans.Find("item_button_gang2").gameObject; buttonGang3 = gangContentTrans.Find("item_button_gang3").gameObject; }
private int count = 1;//第一次点击缺一门的时候,手牌最后一张移动到摸牌区,只用一次 private void Start() { // maskGO = Resources.Load("mask") as GameObject; paipaipai = gameObject.GetComponent <FICpaipaipai>(); startGame = gameObject.GetComponent <FICStartGame>(); myCards = gameObject.GetComponent <FICMyCards>(); Interaction_UIGO = GameObject.Find("Interaction_UI"); QueYiMen = Interaction_UIGO.transform.Find("can_que").gameObject; queWanButton = QueYiMen.transform.Find("btn_que_wan").GetComponent <Button>(); queTiaoButton = QueYiMen.transform.Find("btn_que_tiao").GetComponent <Button>(); queTongButton = QueYiMen.transform.Find("btn_que_tong").GetComponent <Button>(); southImage = transform.Find("/Game_UI/Fixed_UI/Image_que/southImage").GetComponent <Image>(); southImageVec = southImage.gameObject.transform.position; southQuePos = transform.Find("/Game_UI/Fixed_UI/Image_que/southImage1").transform.position; queWanButton.onClick.AddListener(delegate { OnQueWanButtonClick(); }); //queTiaoButton.onClick.AddListener(OnQueTiaoButtonClick); //queTongButton.onClick.AddListener(OnQueTongButtonClick); }