private void Awake() { _Instance = this; PlayerType = Mng.I.SelectedType; bMobileOn = true; if (PlayerType.Equals(PLAYERTYPE.RAT)) { Instantiate(PlayerGams[0], GameTr.position, Quaternion.Euler(new Vector3(0.0f, 0.0f, 0.0f))).transform.parent = GameTr; PlayerSc = GameObject.Find("Rat(Clone)").GetComponent <Player>(); CharActiveBtn.image.sprite = CharActiveSkillSp[0]; } else if (PlayerType.Equals(PLAYERTYPE.TURTLE)) { Instantiate(PlayerGams[1], GameTr.position, Quaternion.Euler(new Vector3(0.0f, 0.0f, 0.0f))).transform.parent = GameTr; PlayerSc = GameObject.Find("Turtle(Clone)").GetComponent <Player>(); CharActiveBtn.image.sprite = CharActiveSkillSp[1]; } else if (PlayerType.Equals(PLAYERTYPE.WOLF)) { Instantiate(PlayerGams[2], GameTr.position, Quaternion.Euler(new Vector3(0.0f, 0.0f, 0.0f))).transform.parent = GameTr; PlayerSc = GameObject.Find("Wolf(Clone)").GetComponent <Player>(); CharActiveBtn.image.sprite = CharActiveSkillSp[2]; } nMonCount = 0; }
void Awake() { _Instance = this; SSoundMng.I.Play("Game", false, true); if (SSoundMng.I.nJoyStickNum.Equals(0)) //Left { JoystickGams.transform.localPosition = new Vector2(-140f, -380f); SkillBtnGams.transform.localPosition = new Vector2(135f, -375f); SkillCoolLabelGams.transform.localPosition = Vector2.zero; } else if (SSoundMng.I.nJoyStickNum.Equals(1)) //Right { JoystickGams.transform.localPosition = new Vector2(160f, -380f); SkillBtnGams.transform.localPosition = new Vector2(-85f, -375f); SkillCoolLabelGams.transform.localPosition = new Vector2(-225f, 0f); } }
void Awake() { _Instance = this; }
private void Awake() { _Instance = this; Screen.SetResolution(1280, 720, true); }
private void Awake() { _Instance = this; Screen.SetResolution(1280, 720, true); PlayerSc = GameObject.Find("Rat").GetComponent <Player>(); }
private void Awake() { _Instance = this; }