// Update is called once per frame void Update() { if (timerstart == true) { tutoTimer += Time.deltaTime; if (GameObject.Find("LevelStat")) { cmp_lvlSt.timerChallenge = tutoTimer; } } else { tutoTimer = 0; } if (cmp_playerCtrl.shield.activeInHierarchy == true) { I6.SetActive(true); shieldTimer += Time.deltaTime; lifeTimer += Time.deltaTime; if (shieldTimer >= 5) { I6.SetActive(false); } if (lifeTimer >= 3) { I7.SetActive(true); } if (lifeTimer >= 8) { I7.SetActive(false); } } if (cmp_playerMod.weapon != null) { if (cmp_playerMod.weapon.GetComponent <UseDurationItm>().actualUses < 3) { I5.SetActive(true); durationTimer += Time.deltaTime; if (durationTimer >= 5) { I5.SetActive(false); } } } }
public void Call(ItemObj item) { switch (Last) { case 1: I1.ChangeItem(item); break; case 2: I2.ChangeItem(item); break; case 3: I3.ChangeItem(item); break; case 4: I4.ChangeItem(item); break; case 5: I5.ChangeItem(item); break; case 6: I6.ChangeItem(item); break; case 7: I7.ChangeItem(item); break; case 8: I8.ChangeItem(item); break; case 9: I9.ChangeItem(item); break; case 10: O.ChangeItem(item); break; } }
public static void TestI7() { var a = new C10(); I7 <int, string, bool> i = a; Assert.AreEqual(1, i.Foo()); var a1 = new C11 <int, string, bool>(); i = a1; Assert.AreEqual(1, i.Foo()); var a2 = new C12 <int, string, bool>(); I7 <I5 <int>, I5 <string>, I5 <bool> > i2 = a2; Assert.AreEqual(1, i2.Foo()); var a3 = new C13 <int, string, bool>(); I7 <I5 <I5 <int> >, I5 <I5 <string> >, I5 <I5 <bool> > > i3 = a3; Assert.AreEqual(1, i3.Foo()); }
public override double GetInputForFuseNumber(int fuseNumber) { switch (fuseNumber % 44) { case 0: return(I1.Output(0)); case 1: return(I1.Output(0).Inverted()); case 2: return(I23.Output(0)); case 3: return(I23.Output(0).Inverted()); case 4: return(I2.Output(0)); case 5: return(I2.Output(0).Inverted()); case 6: return(I22.Output(0)); case 7: return(I22.Output(0).Inverted()); case 8: return(I3.Output(0)); case 9: return(I3.Output(0).Inverted()); case 10: return(I21.Output(0)); case 11: return(I21.Output(0).Inverted()); case 12: return(I4.Output(0)); case 13: return(I4.Output(0).Inverted()); case 14: return(I20.Output(0)); case 15: return(I20.Output(0).Inverted()); case 16: return(I5.Output(0)); case 17: return(I5.Output(0).Inverted()); case 18: return(I19.Output(0)); case 19: return(I19.Output(0).Inverted()); case 20: return(I6.Output(0)); case 21: return(I6.Output(0).Inverted()); case 22: return(I18.Output(0)); case 23: return(I18.Output(0).Inverted()); case 24: return(I7.Output(0)); case 25: return(I7.Output(0).Inverted()); case 26: return(I17.Output(0)); case 27: return(I17.Output(0).Inverted()); case 28: return(I8.Output(0)); case 29: return(I8.Output(0).Inverted()); case 30: return(I16.Output(0)); case 31: return(I16.Output(0).Inverted()); case 32: return(I9.Output(0)); case 33: return(I9.Output(0).Inverted()); case 34: return(I15.Output(0)); case 35: return(I15.Output(0).Inverted()); case 36: return(I10.Output(0)); case 37: return(I10.Output(0).Inverted()); case 38: return(I14.Output(0)); case 39: return(I14.Output(0).Inverted()); case 40: return(I11.Output(0)); case 41: return(I11.Output(0).Inverted()); case 42: return(I13.Output(0)); case 43: return(I13.Output(0).Inverted()); } return(0); }
// Use this for initialization void Start() { PlayerIcon.GetComponent <SpriteRenderer>().enabled = true; A1.GetComponent <SpriteRenderer>().enabled = false; A2.GetComponent <SpriteRenderer>().enabled = false; A3.GetComponent <SpriteRenderer>().enabled = false; A4.GetComponent <SpriteRenderer>().enabled = false; A5.GetComponent <SpriteRenderer>().enabled = false; A6.GetComponent <SpriteRenderer>().enabled = false; A7.GetComponent <SpriteRenderer>().enabled = false; A8.GetComponent <SpriteRenderer>().enabled = false; A9.GetComponent <SpriteRenderer>().enabled = false; A10.GetComponent <SpriteRenderer>().enabled = false; A11.GetComponent <SpriteRenderer>().enabled = false; B1.GetComponent <SpriteRenderer>().enabled = false; B2.GetComponent <SpriteRenderer>().enabled = false; B3.GetComponent <SpriteRenderer>().enabled = false; B4.GetComponent <SpriteRenderer>().enabled = false; B5.GetComponent <SpriteRenderer>().enabled = false; B6.GetComponent <SpriteRenderer>().enabled = false; B7.GetComponent <SpriteRenderer>().enabled = false; B8.GetComponent <SpriteRenderer>().enabled = false; B9.GetComponent <SpriteRenderer>().enabled = false; B10.GetComponent <SpriteRenderer>().enabled = false; B11.GetComponent <SpriteRenderer>().enabled = false; C1.GetComponent <SpriteRenderer>().enabled = false; C2.GetComponent <SpriteRenderer>().enabled = false; C3.GetComponent <SpriteRenderer>().enabled = false; C4.GetComponent <SpriteRenderer>().enabled = false; C5.GetComponent <SpriteRenderer>().enabled = false; C6.GetComponent <SpriteRenderer>().enabled = false; C7.GetComponent <SpriteRenderer>().enabled = false; C8.GetComponent <SpriteRenderer>().enabled = false; C9.GetComponent <SpriteRenderer>().enabled = false; C10.GetComponent <SpriteRenderer>().enabled = false; C11.GetComponent <SpriteRenderer>().enabled = false; D1.GetComponent <SpriteRenderer>().enabled = false; D2.GetComponent <SpriteRenderer>().enabled = false; D3.GetComponent <SpriteRenderer>().enabled = false; D4.GetComponent <SpriteRenderer>().enabled = false; D5.GetComponent <SpriteRenderer>().enabled = false; D6.GetComponent <SpriteRenderer>().enabled = false; D7.GetComponent <SpriteRenderer>().enabled = false; D8.GetComponent <SpriteRenderer>().enabled = false; D9.GetComponent <SpriteRenderer>().enabled = false; D10.GetComponent <SpriteRenderer>().enabled = false; D11.GetComponent <SpriteRenderer>().enabled = false; E1.GetComponent <SpriteRenderer>().enabled = false; E2.GetComponent <SpriteRenderer>().enabled = false; E3.GetComponent <SpriteRenderer>().enabled = false; E4.GetComponent <SpriteRenderer>().enabled = false; E5.GetComponent <SpriteRenderer>().enabled = false; E6.GetComponent <SpriteRenderer>().enabled = false; E7.GetComponent <SpriteRenderer>().enabled = false; E8.GetComponent <SpriteRenderer>().enabled = false; E9.GetComponent <SpriteRenderer>().enabled = false; E10.GetComponent <SpriteRenderer>().enabled = false; E11.GetComponent <SpriteRenderer>().enabled = false; F1.GetComponent <SpriteRenderer>().enabled = false; F2.GetComponent <SpriteRenderer>().enabled = false; F3.GetComponent <SpriteRenderer>().enabled = false; F4.GetComponent <SpriteRenderer>().enabled = false; F5.GetComponent <SpriteRenderer>().enabled = false; F6.GetComponent <SpriteRenderer>().enabled = false; F7.GetComponent <SpriteRenderer>().enabled = false; F8.GetComponent <SpriteRenderer>().enabled = false; F9.GetComponent <SpriteRenderer>().enabled = false; F10.GetComponent <SpriteRenderer>().enabled = false; F11.GetComponent <SpriteRenderer>().enabled = false; G1.GetComponent <SpriteRenderer>().enabled = false; G2.GetComponent <SpriteRenderer>().enabled = false; G3.GetComponent <SpriteRenderer>().enabled = false; G4.GetComponent <SpriteRenderer>().enabled = false; G5.GetComponent <SpriteRenderer>().enabled = false; G6.GetComponent <SpriteRenderer>().enabled = false; G7.GetComponent <SpriteRenderer>().enabled = false; G8.GetComponent <SpriteRenderer>().enabled = false; G9.GetComponent <SpriteRenderer>().enabled = false; G10.GetComponent <SpriteRenderer>().enabled = false; G11.GetComponent <SpriteRenderer>().enabled = false; H1.GetComponent <SpriteRenderer>().enabled = false; H2.GetComponent <SpriteRenderer>().enabled = false; H3.GetComponent <SpriteRenderer>().enabled = false; H4.GetComponent <SpriteRenderer>().enabled = false; H5.GetComponent <SpriteRenderer>().enabled = false; H6.GetComponent <SpriteRenderer>().enabled = false; H7.GetComponent <SpriteRenderer>().enabled = false; H8.GetComponent <SpriteRenderer>().enabled = false; H9.GetComponent <SpriteRenderer>().enabled = false; H10.GetComponent <SpriteRenderer>().enabled = false; H11.GetComponent <SpriteRenderer>().enabled = false; I1.GetComponent <SpriteRenderer>().enabled = false; I2.GetComponent <SpriteRenderer>().enabled = false; I3.GetComponent <SpriteRenderer>().enabled = false; I4.GetComponent <SpriteRenderer>().enabled = false; I5.GetComponent <SpriteRenderer>().enabled = false; I6.GetComponent <SpriteRenderer>().enabled = false; I7.GetComponent <SpriteRenderer>().enabled = false; I8.GetComponent <SpriteRenderer>().enabled = false; I9.GetComponent <SpriteRenderer>().enabled = false; I10.GetComponent <SpriteRenderer>().enabled = false; I11.GetComponent <SpriteRenderer>().enabled = false; J1.GetComponent <SpriteRenderer>().enabled = false; J2.GetComponent <SpriteRenderer>().enabled = false; J3.GetComponent <SpriteRenderer>().enabled = false; J4.GetComponent <SpriteRenderer>().enabled = false; J5.GetComponent <SpriteRenderer>().enabled = false; J6.GetComponent <SpriteRenderer>().enabled = false; J7.GetComponent <SpriteRenderer>().enabled = false; J8.GetComponent <SpriteRenderer>().enabled = false; J9.GetComponent <SpriteRenderer>().enabled = false; J10.GetComponent <SpriteRenderer>().enabled = false; J11.GetComponent <SpriteRenderer>().enabled = false; K1.GetComponent <SpriteRenderer>().enabled = false; K2.GetComponent <SpriteRenderer>().enabled = false; K3.GetComponent <SpriteRenderer>().enabled = false; K4.GetComponent <SpriteRenderer>().enabled = false; K5.GetComponent <SpriteRenderer>().enabled = false; K6.GetComponent <SpriteRenderer>().enabled = false; K7.GetComponent <SpriteRenderer>().enabled = false; K8.GetComponent <SpriteRenderer>().enabled = false; K9.GetComponent <SpriteRenderer>().enabled = false; K10.GetComponent <SpriteRenderer>().enabled = false; K11.GetComponent <SpriteRenderer>().enabled = false; float ratio = Screen.width / Screen.height; if (ratio < 2) { int screenx = 543; int screeny = 653; } else { int screenx = 743; int screeny = 853; } }