コード例 #1
0
ファイル: GameManager.cs プロジェクト: MGageMorgan/MrSuter
    // Use this for initialization
    void Start()
    {
        Zombie zombie = new Zombie();
        Player player = new Player();

        player.TakeDamage(zombie.Attack());
        player.TakeDamage(zombie.AcidPukeAttack());

        player.Die();

        Zombie[] zombies = new Zombie[100];

        for (int x = 0; x < zombies.Length; x++)
        {
            zombies [x] = new Zombie();
            Debug.Log("Creating zombie #: " + x);
        }
    }