コード例 #1
0
    // Use this for initialization
    void Start()
    {
        currentPotion     = maxPotion - 2;
        currentMeleeBonus = 0;
        currentHP         = HPLevels [1];
        currentAttack     = attackLevels [1];
        currentDefence    = defenceLevels [1];

        thePlayerHealth = FindObjectOfType <Player2Hp> ();
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     theP1 = FindObjectOfType <PlayerHp> ();
     theP2 = FindObjectOfType <Player2Hp>();
 }