private void powerup(mCharacter character) { Debug.Log("powerup" + character.ID.ToString()); switch (NumofIteam) { case 1: { //角色i增加生命 character.health += 20; character.health = Mathf.Min(100, character.health); break; } case 2: { //角色i增加攻击力 character.attack += 10; break; } case 3: { //角色i增加防御力 character.defense += 5; break; } } }
NewResult nr; //结果集操作 private void Start() { nt = new NewTalk(); Nresult = new NewResult(); nConversation = new NewConversation(); nr = new NewResult(); s0 = new string[3, 2]; c0 = GameObject.Find("c0").GetComponent <mCharacter>(); c1 = GameObject.Find("c1").GetComponent <mCharacter>(); c2 = GameObject.Find("c2").GetComponent <mCharacter>(); c = isplayer(); if (c.ID == 0) { actor = "Partner_1002"; } if (c.ID == 1) { actor = "Partner_1001"; } if (c.ID == 2) { actor = "Partner_1003"; } floor = GameData.floor; }
// Start is called before the first frame update void Start() { toDialog = new string[3]; c0 = GameObject.Find("c0").GetComponent <mCharacter>(); c1 = GameObject.Find("c1").GetComponent <mCharacter>(); c2 = GameObject.Find("c2").GetComponent <mCharacter>(); audio = GameObject.Find("Audio"); audio.SetActive(false); GenerateMonster(); }
// Start is called before the first frame update void Start() { c0 = GameObject.Find("c0").GetComponent <mCharacter>(); c1 = GameObject.Find("c1").GetComponent <mCharacter>(); c2 = GameObject.Find("c2").GetComponent <mCharacter>(); DontDestroyOnLoad(c0.gameObject); DontDestroyOnLoad(c1.gameObject); DontDestroyOnLoad(c2.gameObject); DontDestroyOnLoad(audioS); T30 = true; T60 = true; SelectPlayer(); }
// Start is called before the first frame update void Start() { if (id == 0) { c = GameObject.Find("c0").GetComponent <mCharacter>(); } if (id == 1) { c = GameObject.Find("c1").GetComponent <mCharacter>(); } if (id == 2) { c = GameObject.Find("c2").GetComponent <mCharacter>(); } }
// Start is called before the first frame update void Start() { if (id == 0) { c = GameObject.Find("c0").GetComponent <mCharacter>(); } if (id == 1) { c = GameObject.Find("c1").GetComponent <mCharacter>(); } if (id == 2) { c = GameObject.Find("c2").GetComponent <mCharacter>(); } originPos = transform.position; }
private void Start() { c0 = GameObject.Find("c0").GetComponent <mCharacter>(); c1 = GameObject.Find("c1").GetComponent <mCharacter>(); c2 = GameObject.Find("c2").GetComponent <mCharacter>(); }