// private int -380 = -380, 300 = 300; // Start is called before the first frame update void Start() { var coinToss = new coinToss(); turn = coinToss.getTurn(); falseTurn = turn; Debug.Log("Turn: " + turn); winText.gameObject.SetActive(false); explodeSelect = GameObject.Find("explodeSelect").GetComponent <Text>(); explodeSelect.gameObject.SetActive(false); initializeGrid(); turnDisable(); listPowerUp1 = Loading.allP1; listPowerUp2 = Loading.allP2; initializePowerUp(); endScreen.gameObject.SetActive(false); allPopUps.gameObject.SetActive(false); disableLayer.rectTransform.sizeDelta = new Vector2(Screen.width, Screen.height); }
// public Button pup1; // Start is called before the first frame update void Start() { var coinToss = new coinToss(); turn = coinToss.getTurn(); Debug.Log("Turn: " + turn); winText.gameObject.SetActive(false); initializeGrid(); turnDisable(); /* var powerUpsA = new PowerUps(); * var powerUpsB = new PowerUps(); * powerUpsA.Init(); * powerUpsB.Init(); * Debug.Log("A PU: " + powerUpsA.GetPowerUpCount()); * Debug.Log(powerUpsB.GetPowerUpCount()); */ listPowerUp1 = Loading.allP1; listPowerUp2 = Loading.allP2; foreach (var px in listPowerUp1.GetActivePowerUps()) { Debug.Log("A: " + px.GetType()); } foreach (var px in listPowerUp2.GetActivePowerUps()) { Debug.Log("B: " + px.GetType()); } }
// Start is called before the first frame update void Start() { Debug.Log(DBManager.score1); Debug.Log(DBManager.score2); if (DBManager.screenName1 != null && DBManager.screenName2 != null) { Debug.Log(DBManager.score1); Debug.Log(DBManager.score2); PlayerDispaly1.text = DBManager.screenName1 + ":" + DBManager.score1; PlayerDispaly2.text = DBManager.screenName2 + ":" + DBManager.score2; } var coinToss = new coinToss(); turn = coinToss.getTurn(); Debug.Log("Turn: " + turn); winText.gameObject.SetActive(false); initializeGrid(); turnDisable(); var powerUpsA = new PowerUps(); var powerUpsB = new PowerUps(); powerUpsA.Init(); powerUpsB.Init(); Debug.Log("A PU: " + powerUpsA.GetPowerUpCount()); Debug.Log(powerUpsB.GetPowerUpCount()); }
// public Button pup1; // Start is called before the first frame update void Start() { var coinToss = new coinToss(); turn = coinToss.getTurn(); Debug.Log("Turn: " + turn); winText.gameObject.SetActive(false); explodeSelect = GameObject.Find("explodeSelect").GetComponent <Text>(); explodeSelect.gameObject.SetActive(false); blockSelect = GameObject.Find("blockSelect").GetComponent <Text>(); blockSelect.gameObject.SetActive(false); nullTextA.gameObject.SetActive(false); nullTextB.gameObject.SetActive(false); undoTextA.gameObject.SetActive(false); undoTextB.gameObject.SetActive(false); initializeGrid(); turnDisable(); /* var powerUpsA = new PowerUps(); * var powerUpsB = new PowerUps(); * powerUpsA.Init(); * powerUpsB.Init(); * Debug.Log("A PU: " + powerUpsA.GetPowerUpCount()); * Debug.Log(powerUpsB.GetPowerUpCount()); */ listPowerUp1 = Loading.allP1; listPowerUp2 = Loading.allP2; initializePowerUp(); }
// Start is called before the first frame update void Start() { var coinToss = new coinToss(); turn = coinToss.getTurn(); falseTurn = turn; Debug.Log("Turn: " + turn); winText.gameObject.SetActive(false); explodeSelect = GameObject.Find("explodeSelect").GetComponent <Text>(); explodeSelect.gameObject.SetActive(false); initializeGrid(); turnDisable(); listPowerUp1 = Loading.allP1; listPowerUp2 = Loading.allP2; // Tracking Analytics: (Handling) Power Up List foreach (var px in listPowerUp1.GetActivePowerUps()) { string pTempText = px.GetType(); powerUpList.Append(pTempText + "|"); } foreach (var px in listPowerUp2.GetActivePowerUps()) { string pTempText = px.GetType(); powerUpList.Append(pTempText + "|"); } Debug.Log(powerUpList.ToString()); initializePowerUp(); endScreen.gameObject.SetActive(false); allPopUps.gameObject.SetActive(false); inHands[0].gameObject.SetActive(false); inHands[1].gameObject.SetActive(false); setInHand(); lSettings(); disableLayer.rectTransform.sizeDelta = new Vector2(Screen.width, Screen.height); }
static void Main(string[] args) { Console.WriteLine("Enter your choice"); int options = Convert.ToInt32(Console.ReadLine()); switch (options) { case 1: Replace aclass = new Replace(); aclass.replace(); break; case 2: coinToss bclass = new coinToss(); bclass.coins(); break; case 3: leapYear cclass = new leapYear(); cclass.leap(); break; case 4: powerTwo dclass = new powerTwo(); dclass.power(); break; case 5: factor eclass = new factor(); eclass.primes(); break; case 6: Harmonic fclass = new Harmonic(); fclass.harnum(); break; case 7: Distance gclass = new Distance(); gclass.dist(); break; case 8: windchill hclass = new windchill(); hclass.wind(); break; case 9: quadricEquation iclass = new quadricEquation(); iclass.equation(); break; case 10: sumOfThree jclass = new sumOfThree(); jclass.integer(); break; case 11: Gambler kclass = new Gambler(); kclass.Game(); break; case 12: swatch lclass = new swatch(); lclass.watch(); break; case 13: coupon mclass = new coupon(); mclass.number(); break; case 14: TwoDArray nclass = new TwoDArray(); nclass.array2D(); break; case 15: TIC_TAC_TOE oclass = new TIC_TAC_TOE(); oclass.tok(); break; } }