6 changed files with 5011 additions and 2565 deletions
@ -1,27 +0,0 @@ |
|||||
fileFormatVersion: 2 |
|
||||
guid: a94cf6fef2879da4c91e5ef768aadf4e |
|
||||
PluginImporter: |
|
||||
externalObjects: {} |
|
||||
serializedVersion: 2 |
|
||||
iconMap: {} |
|
||||
executionOrder: {} |
|
||||
defineConstraints: [] |
|
||||
isPreloaded: 0 |
|
||||
isOverridable: 0 |
|
||||
isExplicitlyReferenced: 0 |
|
||||
validateReferences: 1 |
|
||||
platformData: |
|
||||
- first: |
|
||||
Any: |
|
||||
second: |
|
||||
enabled: 1 |
|
||||
settings: {} |
|
||||
- first: |
|
||||
Editor: Editor |
|
||||
second: |
|
||||
enabled: 0 |
|
||||
settings: |
|
||||
DefaultValueInitialized: true |
|
||||
userData: |
|
||||
assetBundleName: |
|
||||
assetBundleVariant: |
|
||||
File diff suppressed because it is too large
@ -0,0 +1,70 @@ |
|||||
|
using System.Collections; |
||||
|
using System.Collections.Generic; |
||||
|
using UnityEngine; |
||||
|
using TMPro; |
||||
|
using Match = System.Text.RegularExpressions.Match; |
||||
|
using System.Text.RegularExpressions; |
||||
|
using UnityEngine.UI; |
||||
|
|
||||
|
public class ConditionOrResultSelectedNode : MonoBehaviour |
||||
|
{ |
||||
|
public WeaponNodeDataPair weaponNodeDataPair; |
||||
|
public bool isResult;//是否是结果,否代表是条件
|
||||
|
|
||||
|
[Header("ui表示")] |
||||
|
public GameObject nomarlInforPanel; |
||||
|
public TMP_Text inforText; |
||||
|
public GameObject gemImageInforPanel; |
||||
|
public Image gemImage; |
||||
|
|
||||
|
public void SetUpNode() |
||||
|
{ |
||||
|
WeaponNode currentWeaponNode = ForgintPointManager.Instance.selectWeaponNode; |
||||
|
if(isResult ==false ) |
||||
|
{ |
||||
|
if (weaponNodeDataPair .nodesColor .Length ==0) |
||||
|
{ |
||||
|
nomarlInforPanel .SetActive(true); |
||||
|
gemImageInforPanel.SetActive(false); |
||||
|
|
||||
|
if(weaponNodeDataPair.description.Length !=0) |
||||
|
{ |
||||
|
inforText.text = weaponNodeDataPair.description; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
inforText.text = weaponNodeDataPair.conditionOrResult; |
||||
|
} |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
nomarlInforPanel.SetActive(false); |
||||
|
gemImageInforPanel.SetActive(true); |
||||
|
|
||||
|
gemImage.sprite = CardManager.Instance.createGemImageByToolX(weaponNodeDataPair.nodesMark, weaponNodeDataPair.nodesColor); |
||||
|
} |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
nomarlInforPanel.SetActive(true); |
||||
|
gemImageInforPanel.SetActive(false); |
||||
|
|
||||
|
if (weaponNodeDataPair.description.Length != 0) |
||||
|
{ |
||||
|
inforText.text = weaponNodeDataPair.description; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
inforText.text = weaponNodeDataPair.conditionOrResult; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public void ConfirmConditionOrResult() |
||||
|
{ |
||||
|
if(weaponNodeDataPair !=null ) |
||||
|
{ |
||||
|
ForgintPointManager.Instance.GenerateNewWeaponNode(this); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,11 @@ |
|||||
|
fileFormatVersion: 2 |
||||
|
guid: b4d3a42ce53d1494c893d227625ec215 |
||||
|
MonoImporter: |
||||
|
externalObjects: {} |
||||
|
serializedVersion: 2 |
||||
|
defaultReferences: [] |
||||
|
executionOrder: 0 |
||||
|
icon: {instanceID: 0} |
||||
|
userData: |
||||
|
assetBundleName: |
||||
|
assetBundleVariant: |
||||
Loading…
Reference in new issue