Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     Text.GetComponent <TextMesh>().alignment = TextAlignment.Center;
     Text.GetComponent <TextMesh>().anchor    = TextAnchor.LowerCenter;
     Text.GetComponent <TextMesh>().richText  = true;
     nuclideContainer = GameObject.Find("EventSystem").GetComponent <NuclideContainer>();
 }
Ejemplo n.º 2
0
 void Start()
 {
     nuclideContainer = GameObject.Find("EventSystem").GetComponent <NuclideContainer>();
     btnCreate.onClick.AddListener(CreateNuclide);
     btnDecay.onClick.AddListener(OnMakeDecay);
     btnOpenNuclideCard.onClick.AddListener(OpenNuclideCard);
     btnDecayChoice.onClick.AddListener(OnDecayChoice);
     btnNeutronFission.onClick.AddListener(OnMakeNeutronFission);
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     nuclideContainer = GameObject.Find("EventSystem").GetComponent <NuclideContainer>();
     cam = CamScript.GetComponent <Camera>();
     BtnExpand.onClick.AddListener(onExpanderClicked);
     BtnCreateNuclide.onClick.AddListener(addNuclideHandler);
     BtnFusion.onClick.AddListener(fusionNodes1);
     BtnDivide.onClick.AddListener(divideNodes1);
     BtnAcceptInner.onClick.AddListener(acceptInner1);
     BtnDecayChain.onClick.AddListener(activateDecayChainPanel);
     BtnReset.onClick.AddListener(removeAllNuclideNodes);
     SetButtonsActive(true);
 }