// Start is called before the first frame update void Start() { // Instantiate at position (0, 0, 0) and zero rotation. GameObject sign = Instantiate(signPrefab, new Vector3(0, 0, signZstart), Quaternion.identity); sc = sign.GetComponent <SignController>(); }
void Start() { //Haetaan objektiviittaukset signs = FindObjectOfType(typeof(SignController)) as SignController; bull = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator> (); audioSystem = GetComponent <AudioSource> (); }
/// <summary> /// Start this instance and get object references /// </summary> void Start() { isMoving = false; signs = FindObjectOfType(typeof(SignController)) as SignController; bull = GetComponent <Rigidbody2D> (); anim = GetComponent <Animator> (); audioSystem = GetComponent <AudioSource> (); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); if (GUILayout.Button("Reset")) { Debug.Log("Resetting sign controller"); SignController controller = target as SignController; controller.count = 1; controller.pool.Clear(); } }
public void CikisYapTest() { var controller = new SignController(); new TestControllerBuilder().InitializeController(controller); controller.HttpContext.Session["id"] = 1; controller.CikisYap(); Assert.IsNull(controller.HttpContext.Session["id"]); }
public void RegisterTest() { //Arrange SignController signController = new SignController(); // you should mock your DbContext and pass that in // Act var result = signController.Register() as ViewResult; // Assert Assert.IsNotNull(result); // add additional checks on the Model Assert.IsTrue(string.IsNullOrEmpty(result.ViewName) || result.ViewName == "Register"); }
public void closeSign() { print("Clicked close sign!"); editSignButton.SetActive(true); saveSignButton.SetActive(false); signText.text = signInput.text; signText.gameObject.SetActive(true); signInput.gameObject.SetActive(false); currentSignTile.text = signText.text; currentSignTile = null; editing = false; signObj.transform.position = startPos; signObj.SetActive(false); UtilBools.playerInteractLock(false); GC.audioMixer.playButtonSFX(); }
public void SignRawTransaction_GivenUnsignedTx_ReturnsCorrectlySignedTx() { var request = new SignTransactionRequest() { Keys = new[] { "private_key1", "private_key2" }, TransactionContext = "00000000" }; var txBytes = HexUtil.ToByteArray(request.TransactionContext); var mockSigningService = new Mock <ISigningService>(); mockSigningService.Setup(m => m.SignRawTransaction(request.Keys, txBytes)) .Returns("signed_tx"); var signController = new SignController(mockSigningService.Object); var result = signController.Sign(request) as ObjectResult; var response = result.Value as SignedTransactionResponse; Assert.Equal("signed_tx", response.SignedTransaction); }
public AppController(SignController signController, NoteController noteController) { _signController = signController; _noteController = noteController; }
// Start is called before the first frame update void Start() { sc = sign.GetComponent <SignController>(); audioManager = FindObjectOfType <AudioManager>(); playerController = van.GetComponent <PlayerController>(); }