示例#1
0
    protected override void MakeOnTouch()
    {
        if (state == FermaMissionStates.FORBUY)
        {
            dialog = Instantiate(dialogFermaBuySlotPrefab) as DialogFermaBuySlot;
            //ArrayList missionsToBuy = fermaMissions.GetFermaLocationPlace().missionEmmitter.GetAvailableNotBoughtMissionsPrefabs();

            dialog.SetFermaMisision(this);
            dialog.SetSlotToBuy(slot);
            dialog.singleTransform.parent        = singleTransform;
            dialog.singleTransform.localPosition = new Vector3(0f, 0f, -0.5f);
            dialog.singleTransform.position      = new Vector3(0f, 0f, dialog.singleTransform.position.z);
            dialog.Show();
        }
        if (state == FermaMissionStates.OPENED && hasMission)
        {
            dialogInfo = Instantiate(dialogFermaMissionInfo) as DialogFermaMissionInfo;
            //ArrayList missionsToBuy = fermaMissions.GetFermaLocationPlace().missionEmmitter.GetAvailableNotBoughtMissionsPrefabs();
            dialogInfo.SetMission(mission);
            dialogInfo.singleTransform.parent        = singleTransform;
            dialogInfo.singleTransform.localPosition = new Vector3(0f, 0f, -0.5f);
            dialogInfo.singleTransform.position      = new Vector3(0f, 0f, dialogInfo.singleTransform.position.z);
            dialogInfo.Show();
        }
    }
示例#2
0
 protected override void MakeOnTouch()
 {
     if (hasMission)
     {
         dialogInfo = Instantiate(dialogFermaMissionInfo) as DialogFermaMissionInfo;
         //ArrayList missionsToBuy = fermaMissions.GetFermaLocationPlace().missionEmmitter.GetAvailableNotBoughtMissionsPrefabs();
         dialogInfo.SetMission(mission);
         dialogInfo.singleTransform.parent        = singleTransform;
         dialogInfo.singleTransform.localPosition = new Vector3(0f, 0f, -0.5f);
         dialogInfo.singleTransform.position      = new Vector3(0f, 0f, dialogInfo.singleTransform.position.z);
         dialogInfo.Show();
     }
 }